I made a form that with the "action" set to post.php.
Here's post.php:
Code: Select all
<?PHP
MySQL_Connect("localhost","Tom","tom") or die("Can''t connect to MySQL Server");
MySQL_Select_Db("news") or die("Can''t select specified database");
$Insert = "INSERT INTO posts VALUES $user, $date, $time, $entry, $title, $id";
MySQL_Query($Insert);
MySQL_Close();
Echo "Information entered into the database";
?>Pleasssseeee Help!
Thanks in advance, - Tom