Jump to content

php and web-link based on table row id


marvist

Recommended Posts

Hi,
I try to make url -link based on table row id. Here is example:
........
while($data = mysql_fetch_assoc($query2))
{foreach($data as $key => $value)
{echo $key.' : <A HREF="http://www.mywebspace.com/orderid_'.$ID.'_.php" TARGET="_blank">'.$value.'</A><br />';}
echo '<br />';}
......

How can I make this work? I only need this $ID to change automatically so that the reference is correct.

Kind Regards,
Marko
Link to comment
https://forums.phpfreaks.com/topic/29932-php-and-web-link-based-on-table-row-id/
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.