I got an error and I don't know what it means
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/goodname/www/www/guestbook.php on line 92
please notify that the script is not inserting entries
,
INSERT INTO guestbook(name, date, comments) VALUES('', SYSDATE(), '')
That means the my_sql tables are wrong right?
Well they look like this:
CREATE TABLE guestbook (
name varchar(50),
date varchar(40),
comments longtext,
id int(4) DEFAULT '0' NOT NULL auto_increment,
PRIMARY KEY (id)
);
and this:
$insert = "INSERT INTO guestbook(name, date, comments) VALUES('$name', SYSDATE(), '$comments')";
$mysql_insert = mysql_query($insert, $mysql_link)
or die("please notify $my_email that the script is not inserting entries<BR><BR>$name,<br>$comments<br><br>$insert");
So what's wrong with the codes??