08.02.2013, 11:43
hello,
so yeah as the title says..
let me explain:
In my table there is 5 fields, no problem right?, the problem starts when I add a new field to them; it doesn't save then,
why? (or it's from my code) ?
This one above saves.
This one ^^, doesn't but why?
any help will be appreciated!!
~Thanks~
so yeah as the title says..
let me explain:
In my table there is 5 fields, no problem right?, the problem starts when I add a new field to them; it doesn't save then,
why? (or it's from my code) ?
PHP код:
new Query[128];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
format(Query, 128, "INSERT INTO `USERS` (`NAME`, `PASSWORD`, `ADMINLEVEL`, `CASH`, `SCORE`) VALUES ('%s','%s','0','0','0')", DB_Escape(PlayerName), DB_Escape(inputtext));
db_query(DataBase, Query);
PHP код:
new Query[128];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
format(Query, 128, "INSERT INTO `USERS` (`NAME`, `PASSWORD`, `ADMINLEVEL`, `CASH`, `SCORE`, `SKIN`) VALUES ('%s','%s','0','0','0', '0')", DB_Escape(PlayerName), DB_Escape(inputtext));
db_query(DataBase, Query);
any help will be appreciated!!
~Thanks~