Quote:
Originally Posted by Debjit
well you are not passing any value for %d.
PHP код:
mysql_format(g_iHandle, query, sizeof query, "INSERT INTO `garages` (`gID`) VALUES(%d)", id);
mysql_tquery(g_iHandle, query, "OnGarageCreated", "d", id);
|
Haha thanks. Sorry I haven't scripted in a while and forgetting all the silly stuff. Now it creates a row in the database, but it's not saving anything to it. I'm getting this?
Код:
(error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''’$' at line 1