<?php mysql_connect("localhost","root",""); mysql_select_db("mydatabase"); $sql="SELECT * FROM user"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { echo '<a href="user_profile.php?variableName='.$row['userid'].'" style="text-decoration:none">'.$row['username'].'</a></form>'; } ?>
<?php mysql_connect("localhost","root",""); mysql_select_db("mydatabase"); $sql="SELECT * FROM user where userid=".$_GET['variableName']; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { echo 'username:'.$row['name']; } ?>
$_GET
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)