MySQL Forums
Forum List  »  PHP

Edit Output
Posted by: Kevin Altizer
Date: February 15, 2016 06:04PM

I have this file displaying the output with a while loop. I would like to add two icons to each row. One would be to edit the record, and the other to delete the record. So I need to add the code to display the two icons at the end of each row and add proper functionality in separate php files I suppose. Here is the code that outputs the simple database records on separate lines:

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td><a href=" . $row['url'] . ">" . $row['url'] . "</a></td>";
echo "<td>" . $row['description'] . "</td>";
echo "</tr>";
}
echo "</table>";

I would appreciate some direction toward a solution.

Options: ReplyQuote


Subject
Written By
Posted
Edit Output
February 15, 2016 06:04PM
February 15, 2016 08:31PM
February 21, 2016 08:57AM
March 08, 2016 12:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.