Select all from SQL
#1

Alright so Im trying to load everything from the SQL but it loads only first 2 rows & ID is incorrect

PHP код:
new query[256];
    
mysql_format(mysqlquerysizeof(query),"SELECT `Reason`,`Date`,`By`,`ID` FROM `bolo`");
    
mysql_tquery(mysqlquery"OnBoloLoad","i",playerid); 
EDIT: What im trying to basically do is to load the entire table.
Reply
#2

PHP код:
mysql_tquery(mysql"SELECT * FROM `bolo`""OnBoloLoad""i"playerid); 
Try that.
Reply
#3

Still nothing :/

this is my displaying
PHP код:
for(new i=0rowsi++) {
        
cache_get_field_content(i"Reason"someStringName);
        
cache_get_field_content(i"Date"IssuedByString);
        
cache_get_field_content(i"By"string);
        
cache_get_field_content(i"ID"dateString);
        
format(mainstring,sizeof(mainstring),"{00FFFF}Text: {FFFFFF}%s || {00FFFF}Date: {FFFFFF}%s || {00FFFF}By: {FFFFFF}%s || {00FFFF}ID: {FFFFFF}%i",someStringName,IssuedByString,string,dateString);
        
Msg(playerid,-1,mainstring);
        
crimecount++;
    } 
Reply
#4

Post the full callback
Reply
#5

Nevermind.. I failed somewhere else....

Thanks for the help tho :*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)