Код: Выделить всё
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...
Код:
Код: Выделить всё
$sql="INSERT INTO tb_table (`postcontent`, `userid`, `posttime`) VALUES ('".$_POST[content]."', '".$user_id."', '".time()."')";
Подробнее здесь: https://stackoverflow.com/questions/220 ... postrophes
Мобильная версия