MySQL Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Error (
/showthread.php?tid=658573)
MySQL Error -
andrey1311 - 07.09.2018
PHP код:
#define SQL_HOST = "localhost"
#define SQL_USER = "root"
#define SQL_DATABASE = "db"
#define SQL_PASSWORD = ""
PHP код:
sqlConnection = mysql_connect(SQL_HOST, SQL_USER, SQL_DATABASE, SQL_PASSWORD);
PHP код:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: MySQL Error -
ShihabSoft - 07.09.2018
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_DATABASE "db"
#define SQL_PASSWORD ""
No "=" sign required