I m trying to create a hyperlink on Edit but my page is not running ...
plz tell me if thr smthing wrong with the href tag or the code is itself is wrong ....
i m actually displaying the results of the mysql database on the HTML page as u can see and then creating a hyperlink Edit as i told u...
<?php
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['username'] . "</td>";
echo "<td>" . $row['Address'] . "</td>";
echo "<td>" <a href = "edit_student.php">Edit</a> "</td>";
echo "<td>" . Delete . "</td";
echo "</tr>";
}
mysql_close($con);
?>
href HTML
Moderator: General Moderators
-
Scrumpy.Gums
- Forum Commoner
- Posts: 71
- Joined: Thu Aug 30, 2007 2:57 pm
- Location: Bristol, UK
Re: href HTML
Shouldn't this go in the code section of the forums? Anyway, the following line is wrong syntactically
It should be:
Code: Select all
echo "<td>" <a href = "edit_student.php">Edit</a> "</td>";Code: Select all
echo '<td><a href="edit_student.php">Edit</a></td>';Re: href HTML
Moved to PHP Code