heres the code:
heres the error:
There was an error please try again later!You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' shows.my.ip.address.edited)' at line 1
Anybody know the solution?
| Code: |
|
10. $sql = sprintf('INSERT INTO Comments (topicid, author, post, date, ip) VALUES (%s, %s, %s, %s, %s)', $topicid, $author, $post, $date, $ip); 11. $result = $db->sql_query($sql); 12. if ($result != false) 13. { 14. echo "Thank you for your comments!"; 15. echo "please wait you are being redirected to the news page"; 16. echo "<meta http-equiv=\"refresh\" content=\"5;URL=../news.php\">"; 17. } 18. else 19. { 20. echo "There was an error please try again later!"; 21. die(mysql_error()); 22. } |
heres the error:
There was an error please try again later!You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' shows.my.ip.address.edited)' at line 1
Anybody know the solution?
