09.09.2011, 18:26
I have this code:
And when it does have "record" it just shows "SELECT `string` FROM `blogs` WHERE `bid` = 'actual input' LIMIT 5"
It doesn't show that actual string, can you see any problem with my code?
PHP код:
new
string[526]
;
format(string, sizeof(string), "SELECT `string` FROM `blogs` WHERE `bid` = '%i' LIMIT 5", acc);
mysql_query(string);
mysql_store_result();
if(mysql_num_rows() > 0)
{
format(string,sizeof(string),"{FF6347}BANK STATEMENT:\n\n{B1C8FB}%s\n",string);
ShowPlayerDialog(playerid,DIALOG_BANK_STAT,DIALOG_STYLE_MSGBOX,"{24FF0A}Bank - {FFFFFF}Statement",string,"OK","");
mysql_free_result();
}
else return
ShowPlayerDialog(playerid, DIALOG_BANK_STAT, DIALOG_STYLE_MSGBOX, "{24FF0A}Bank - {FFFFFF}Statement", "No record was found on this account", "OK", "");
It doesn't show that actual string, can you see any problem with my code?