<?
$db_name = "php5";
$table_name = "post";
$connection = @mysql_connect("localhost", "php5", "php5")
or die(mysql_error());
$db = @mysql_select_db($db_name, $connection) or die(mysql_error());
$sql = "INSERT INTO $table_name
(title, entry, comentry, dates) VALUES
('$_POST[title]', '$_POST[entry]', '$_POST[comentry], '$_POST[dates]')";
$result = @mysql_query($sql,$connection) or die(mysql_error());
?>
<?
/*01*/ $db_name = "php5";
/*02*/ $table_name = "post";
/*03*/ $connection = @mysql_connect("localhost", "php5", "php5")
/*04*/ or die(mysql_error());
/*05*/ $db = @mysql_select_db($db_name, $connection) or die(mysql_error());
/*06*/ $sql = "INSERT INTO $table_name
/*07*/ (title, entry, comentry, dates) VALUES
/*08*/ ('$_POST[title]', '$_POST[entry]', '$_POST[comentry], '$_POST[dates]')";
/*09*/ $result = @mysql_query($sql,$connection) or die(mysql_error());
?>