Armando
Новичок
PHP:
$ip = $_SERVER['REMOTE_ADDR'];
$from = "direct link"
$date=date("m / d");
$query = "INSERT INTO total
(ip,date,from) VALUES
('$ip', '$date', '$from')";
mysql_query($query) or die(mysql_error());
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) VALUES ('127.0.0.1', '10 / 08', 'direct link')' at line 2
Более того, если убрать 3e значение ('from' и $from) , то все добавляется! В чем проблема?