$from = $_SERVER['HTTP_REFERER'];
mysql_query("INSERT INTO visitor SET from = '".$from."'");
Выдет ошибку:
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 = 'http://www.example.ru/'' at line 10
В чем причина?
_____________
Курс валют