hello...
i want to display the data from mysql database & simultaneously make each data a link passing the id.
can anyone say what is wrong with it??if u can,plz help me...
regards.....
i want to display the data from mysql database & simultaneously make each data a link passing the id.
Code:
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("form");
$result=mysql_query("select name from dynamic") or die(mysql_error());
if(mysql_num_rows($result)==0)
{
echo "database is empty <br>";
} else
{
while(list($id,$name)=mysql_fetch_array($result))
{
?>
<a href="dynamic2.php?id=$id?"> <?php echo $uname; ?> </a> <br >
<?php
}
?>
regards.....
Comment