There is a form on the site that works for all users clearly. But then one user began to give an error:
"SQL syntax;
'FROM `price` WHERE id_item='11051'' at line 1.
I just can’t understand if the request is incorrect, would it not work for everyone then? And only one user fails ...
in the script it looks like this:
$query = mysql_query("SELECT naimenovanie, {$price} FROM `price` WHERE `id_item`='$id_item'") or die (mysql_error()); while ($row = mysql_fetch_array($query)) { $izdelie=$row['naimenovanie']; $cena=$row[$price]; }
or die(mysql_error())(or whatever it is) apparently - teran$id_item- teran turns out$price? if there is a line like10 000(with a space), then the request will obviously not work. - teran