SQL syntax error

dubpark

Registered
Код:
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 'from, id_from, for, id_for, accepted) VALUES ('Делян Здравков', '6'' at line 1

PHP:
mysql_query("INSERT INTO `friends` (from, id_from, for, id_for, accepted) VALUES ('$xaxaa[ime] $xaxaa[familiq]', '$xaxaa[id]', '$xaxa[ime] $xaxa[familiq]', '$xaxa[id]', '3')") or die(mysql_error());

WTF
 
PHP:
mysql_query("INSERT INTO `friends` (`from`,` id_from`, `for`, `id_for`, `accepted`) VALUES ('$xaxaa[ime] $xaxaa[familiq]', '$xaxaa[id]', '$xaxa[ime] $xaxa[familiq]', '$xaxa[id]', '3')") or die(mysql_error());
:idea: :idea:
 

Back
Горе