dannybrazil
03-11-2010, 11:18 PM
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 ?
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 ?