problem with mysql and loop
#2

you can remove filter in your query. i.e. you can select all houses in one query and then load it one by one.
for example:
pawn Код:
new rows, field, IDH, str[120];
mysql_query("SELECT * FROM `house_info`");
...
new idx = 1;
while(mysql_retrieve_row())
{
    //now idx - your house id
    cache_get_data(rows, field, DB);
    if(!rows)
    {
        IDH = h;
        break;
    }
    idx++;
}
...
Reply


Messages In This Thread
problem with mysql and loop - by Bob_Dylan - 03.09.2013, 00:11
Re: problem with mysql and loop - by Borg - 03.09.2013, 02:13
Re: problem with mysql and loop - by Bob_Dylan - 04.09.2013, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)