mysql check problem
#1

Hi guys, i have problem with check, here is my code:

PHP код:
    new rowsFields;
    new 
komanda[126], adminimeig[126], toggle;
    
mysql_format(MySQLQuerysizeof(Query), "SELECT * FROM `komande` WHERE `komanda` = `%s`"cmdtext);
    
mysql_query(MySQLQuery);
    
cache_get_data(rowsFields);
    if(
rows) {
         new 
tmp[130];
        
//cache_get_field_content(0, "ID", tmp);
        //id = strval(tmp);
        
cache_get_field_content(0"komanda"tmp);
        
format(komanda126"%s"tmp);
        
        
cache_get_field_content(0"admin"tmp);
        
admin strval(tmp);
        
        
cache_get_field_content(0"igrac"tmp);
        
format(imeig126"%s"tmp);
        
        
cache_get_field_content(0"toggle"tmp);
        
toggle strval(tmp);
    } 
and table look like this:

structure:

ERROR:
Reply
#2

FIXED, i changed:
PHP код:
`%s
to
PHP код:
'%s' 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)