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 Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.