12.05.2014, 11:49
Ah I didn't notice that SELECT query, you don't need to loop then.
How you are getting the ID, I can see it's a stock not a callback, is there any more query ran to get the house ID first? Why not just select all data also limit it? Then looping through the rows.
OR with limiting:
How you are getting the ID, I can see it's a stock not a callback, is there any more query ran to get the house ID first? Why not just select all data also limit it? Then looping through the rows.
PHP код:
SELECT * FROM `houses`
PHP код:
SELECT * FROM `houses` LIMIT 0,max_houses