dannybrazil Posted March 12, 2010 Share Posted March 12, 2010 Hey guys I have a question that I hope you can help me with... I have a link that looks something like that www.mysite.com?id-1=123&id-2=456....id-(n)=i *could be 1 ID or 100 id's passed on with the link what I wanted to know is how can I put all of these id's into a sql query and get a specific info' for each of these id's I need it to be some kind of a loop or something...I dont know ex: for each id I want a DIV with some info <div>//id=1 echo $row['address']; echo $row['phone']; </div> <div>//id=2 echo $row['address']; echo $row['phone']; </div> . . <div>//id=i echo $row['address']; echo $row['phone']; </div> some king of a loop till he echoes the last ID# from the link any one ? Link to comment https://forums.phpfreaks.com/topic/194966-array-sql-from-a-link/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.