marvist Posted December 8, 2006 Share Posted December 8, 2006 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 More sharing options...
Ninjakreborn Posted December 8, 2006 Share Posted December 8, 2006 [code]<?phpwhile($data = mysql_fetch_assoc($query2)) {echo "<a href=\"page.php?id={$data[id]}\" title=\"Page\">Page</a>";}?>[/code] Link to comment https://forums.phpfreaks.com/topic/29932-php-and-web-link-based-on-table-row-id/#findComment-137503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.