MySQL help again
#5

1.
Find:
PHP Code:
cache_get_value_name(0"ID"fetch);
BuildingInfo[id][ID]= strval(fetch); 
Replace with:
PHP Code:
cache_get_value_name_int(0"ID"BuildingInfo[id][ID]); 
2.
Find:
PHP Code:
cache_get_row_count(rows);
cache_get_field_count(fields); 
Replace with:
PHP Code:
cache_get_row_count(rows); 
3.
Just change 0 number to loop rows because you already get the rows so why you must add 0?.

Example:
PHP Code:
cache_get_row_count(rows);
for(new 
irowsi++)
{
      
//do something here
      
cache_get_value_name_int(i"ID"BuildingInfo[id][bID]);

why loop? because you must load all data from rows.
Reply


Messages In This Thread
MySQL help again - by TheLeech - 17.01.2019, 16:40
Re: MySQL help again - by Heress - 17.01.2019, 16:42
Re: MySQL help again - by TheLeech - 17.01.2019, 16:51
Re: MySQL help again - by TheLeech - 18.01.2019, 08:44
Re: MySQL help again - by B3x7K - 18.01.2019, 09:40
Re: MySQL help again - by TheLeech - 18.01.2019, 10:09
Re: MySQL help again - by B3x7K - 18.01.2019, 11:56
Re: MySQL help again - by TheLeech - 18.01.2019, 12:31
Re: MySQL help again - by B3x7K - 19.01.2019, 00:00

Forum Jump:


Users browsing this thread: 1 Guest(s)