Jump to content

Get next result without array?


Caffeinenyx

Recommended Posts

I have a list of ID's returned from a table (even number). I always used a loop to get the next result, but I want to put these straight into a new table

 

INSERT INTO table VALUES ($ID1, $ID2);

 

This is recursive till there are no more ID's. How do I get the result then the next result without loops. ID1 and ID2 cannot be null. What is the best way?

Link to comment
https://forums.phpfreaks.com/topic/235651-get-next-result-without-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.