When I try to write to my sql I get a syntax error when something is written in the last feild I’ve checked the database structure I rewrote the code 5 times I can’t figure out why it tells me there is a syntax error only when the comment veriable has a value. heres the code:
php:
connect();
$query = “INSERT INTO guestbook VALUES (’$name’,’$rel’,’$comment’)”; // the $comment veriable on this line is whats giving me the truble
[php]
mysql_query($query);
echo mysql_error();
mysql_close();
[/php]
thank you for looking at it