MySQL INSERT INTO/UPDATE.
#2

At the INSERT INTO mysql format, there is something wrong.

You did insert into factionname and factiontype, but you forgot to set a value for the faction type. Try this:
PHP код:
mysql_format(mysql,query,sizeof(query), "INSERT INTO `faction` (`factionname`,`factiontype`) VALUES ('%e', '%d')",inputtemysql_format(mysql,query,sizeof(query), "INSERT INTO `faction` (`factionname`,`factiontype`) VALUES ('%e', '%d')",inputtextfactiontype); 
Replace the "factiontype" at the end with your factiontype variable
Reply


Messages In This Thread
MySQL INSERT INTO/UPDATE. - by DavidLuango - 30.07.2016, 05:33
Re: MySQL INSERT INTO/UPDATE. - by Ahmed21 - 30.07.2016, 07:45
Re: MySQL INSERT INTO/UPDATE. - by Shinja - 30.07.2016, 11:32

Forum Jump:


Users browsing this thread: 1 Guest(s)