Jump to content

Need help on how to hyperlink query results in a table!


affluent980

Recommended Posts

I have a block of code that displays the contents of my table for leads that i collect. I want to be able to hyperlink the "LeadID" so that when clicked, I can a page that displays that lead's info so i can then edit it if necessary. How do i make each returned "LeadID" hyperlinked so it will go to the next page? Here is my code so far that shows the table and i want to make LeadID hyperlinked to go to my next page details.php . Please help!!!

 

while($row = mysql_fetch_array($result))

{

echo "<tr>";

echo "<td>" . $row['LeadID'] . "</td>";

echo "<td>" . $row['CID'] . "</td>";

echo "<td>" . $row['Category'] . "</td>";

echo "<td>" . $row['Name'] . "</td>";

echo "<td>" . $row['Email'] . "</td>";

echo "<td>" . $row['Phone'] . "</td>";

echo "<td>" . $row['Date'] . "</td>";

echo "<td>" . $row['Time'] . "</td>";

echo "<td>" . $row['Keyword'] . "</td>";

echo "<td>" . $row['More'] . "</td>";

echo "<td>" . $row['Less'] . "</td>";

echo "<td>" . $row['Closed'] . "</td>";

echo "<td>" . $row['Revenue'] . "</td>";

echo "</tr>";

}

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.