MYSQL SAVING ERROR (NEED IT URGENT) Thanks!
#5

I used that "technique" to build long query strings:

PHP Code:
new query[1024]; // long string with sql query
new tmp[64];
formatquery1024"UPDATE players SET " );
formattmp64"age = %i, "player[playerid][AGE] );
strcatquerytmp );
formattmp64"health = %0.2f, "player[playerid][HEALTH] );
strcatquerytmp );
// ...
formattmp64"money = %i "player[playerid][MONEY] );
strcatquerytmp );
formattmp64"WHERE id = %i;"player[playerid][BASEID] );
strcatquerytmp );
mysql_querymysqlquery ); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)