Jump to content

Array with hyperlink


Jay2391

Recommended Posts

 

I need to pull some name from a db and as they show they all have a hyperlink that will show each users profile.... i did this but it is not working...any ideas....

 

<?php
   $q= "SELECT * FROM $users ORDER BY id DESC";
   $r = mysql_query($q);
   while($row = mysql_fetch_array($r)){

                                        $id = $row['id'];
		 $location = $row['location'];


      print '<table width="600" border="0" cellspacing="0" cellpadding="0"><tr>

        	  <tr>
              <td width="100" height="12" align="center" valign="middle" nowrap="nowrap" scope="col">
 <div align="left" class="style9"><a href=\"info.php?id=$id\">' .$id. '</a></div></td>
              </tr></table>';	 			 


  
        }
?>



Link to comment
https://forums.phpfreaks.com/topic/71725-array-with-hyperlink/
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.