MySql: Objects not loading
#5

Your query looks fine, it should load data.
But i don't know why do you have this?
PHP код:
for(new hsizeof(tInfo); h++) 
        { 
            if(
tInfo[h][t_id] == 0
            { 
You are looping through whole array which is probably empty i assume, so you are loading the last row into the whole array.

You don't need that, simply loop once like this:
PHP код:
// this goes on top, it checks if the data in database is not more than the declared array size, if so we only load till the limit
if (rows MAX_TOWER) {
    
rows MAX_TOWER;
}
for(new 
irowsi++) {
    
tInfo[i][···] = cache_get_field_content_int(i, ...);

And you are not saving the dynamic object id anywhere, i don't know if its intentional or not. Just pointing out.
Reply


Messages In This Thread
MySql: Objects not loading - by akib - 30.01.2018, 03:08
Re: MySql: Objects not loading - by Mugala - 30.01.2018, 03:25
Re: MySql: Objects not loading - by akib - 30.01.2018, 03:35
Re: MySql: Objects not loading - by Mugala - 30.01.2018, 03:58
Re: MySql: Objects not loading - by Gammix - 30.01.2018, 04:16
Re: MySql: Objects not loading - by akib - 30.01.2018, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)