not inserting id in the database
#1

mysql_format(mysql, szQuery, 256, "INSERT INTO `clans` (`Name`) VALUES ('%e')", inputtext);
new Cache: result = mysql_query(mysql, szQuery);
new i = cache_insert_id();
cache_delete(result);
PlayerInfo[playerid][pClanid] = i;
this is not inserting a new clan id in the database,i create a clan for the first time and it creates a clan id 0 in the database and that's it,if i try to create anotherone the data base only has the first one;
Reply


Messages In This Thread
not inserting id in the database - by bosmania - 28.02.2019, 13:29
Re: not inserting id in the database - by bosmania - 28.02.2019, 14:08
Re: not inserting id in the database - by raydx - 28.02.2019, 14:26
Re: not inserting id in the database - by bosmania - 28.02.2019, 15:35
Re: not inserting id in the database - by naahu - 28.02.2019, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)