Guest_imported
New member
- Jan 1, 1970
- 0
I'm having a hard time using the insert command:
What am I doing wrong?
Code:
function do_entry($entry_name, $entry_email, $entry_url, $entry_msn, $entry_aim, $entry_icq, $entry_yahoo, $entry_message) {
global $admin, $sitename, $cookie, $prefix;
mysql_connect('localhost', 'username', 'pass') or die ('Cannot connect to database!');
mysql_select_db ('db') or die ('Cannot select database!');
$query="INSERT INTO guestbook (id, name, email, url, msn, aim, icq, yahoo, message, data, time) VALUES (6, '$entry_name', '$entry_email', '$entry_url', '$entry_msn', '$entry_aim', '$entry_icq', '$entry_yahoo', '$entry_message', 'date', 'time')";
mysql_query($query);
echo "entry added!";
}
What am I doing wrong?