<?php
$con = mysql_connect("localhost","username","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("database", $con);
mysql_query("INSERT INTO news (title, new)
VALUES ('naujienos_pav', 'pati_naujiena')");
mysql_close($con);
?>