Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
php how do i add a link to a while loop and each link must have a purpose

under
PHP
echo '<td>'. $queue . '</td></tr>';

there must be another echo with a link that links to a another page.
PHP
<?php
   if($q_run = mysql_query($query))
   {
      while($row = mysql_fetch_assoc($q_run))
      {
         $name = $row['name'];
         $date = $row['date'];
         $time = $row['time'];
         $queue = $row['queue'];

         echo '<tr><td>'. $name .'</td>';
         echo '<td>'. $date . '</td>';
         echo '<td>'. $time . '</td>';
         echo '<td>'. $queue . '</td></tr>';
      }
   }
?>
Posted
Updated 18-Oct-13 3:39am
v2

1 solution

Surely with:
PHP
echo '<a href="'. $thelinkthatyouhavetoconstructyourself .'">See here</a>';
 
Share this answer
 
Comments
Nico_Travassos 18-Oct-13 16:22pm    
hi would i have to pull the link from database?
phil.o 19-Oct-13 4:57am    
Without no idea of your requirement, I cannot answer this question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900