this is the code once we've gone into the view.php:
Code: Select all
<?php
if(isset($_REQUEST['id']))
{
$user_id = $_REQUEST['id'];
$conn = mysql_connect("localhost","root","") or die("Could Not
Connect To The Database");
mysql_select_db("aziz",$conn) or die("Could Not Select The Database");
//sql query somethinglike
$sql = "SELECT * FROM azizpassword WHERE user_id = '".$user_id."'";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
echo "<h1>"."Name:" . " " . $row['az_firstname'] . " " . $row['az_surname']
. "</h1>";
echo "<h4>"."Username:" . " " . $row['username'] . " " . "</h4>";
echo "<h4>"."User ID:" . " " . $row['user_id'] . " " . "</h4>";
echo "<h4>"."Password:"." " . $row['password']. "</h4>";
echo '<br> ';
echo '<br> ';
if (isset($HTTP_REFERER)) {echo "<a href='$HTTP_REFERER'>BACK</a>"; }
else {echo "<a href='javascript:history.back()'>BACK</a>";
}
}
?>I hope someone can help me with this problem that would be great
Thank You really appreciate it
Take Care