how to use hyperlink for some text in php


 
 
 
 
 
 
 
 

how to use hyperlink for some text  in php

<?php
$connect=mysql_connect(“localhost”,”root”,”root”);
mysql_select_db(“class”,$connect);
$result=mysql_query(“SELECT first_name,last_name ,post,status FROM users”);
echo “<table border=1>”;
echo “<tr><td>First Name</td><td>Last Name</td><td>Post</td><td>Status</td><td>Edit      /update</td></tr>”;
while ($row=mysql_fetch_array($result))
{
    echo “<tr>”;
    echo “<td>” . $row[‘first_name’] . “</td>”;
    echo “<td>” . $row[‘last_name’] . “</td>”;
    echo “<td>” .$row[‘post’]. “</td>”;
    echo “<td>”. $row[‘status’]. “</td>”;
    echo “<td> update </td>”;
    echo “</tr>”;
}
mysql_close($connect);
echo “</table>”;
?>
now if a user now wants to hyperlink this below line
echo “<td> update </td>”;
he can use hyperlink this way
echo “<td><a href=”filename.php”>update</a></td>