ho to edit content for the users i need some code

They have: 1 posts

Joined: Jan 2013

<?php
//session_start();
//print_r ($_POST);
//exit;

//$username = $_POST['username'];
//$password = $_POST['password'];


include "sqlconnect.php";
//$edit = echo "Edit";
$query = mysql_query("select * from `userregistration where user_id=$_GET[user_id]");
// where `username`='$username' AND `password`= '$password'");
echo "<table border='1'>
<tr>
<th> Userid </th>
<th> Name </th>
<th> Adddress </th>
<th> Phone</th>
<th> Email </th>
<th> Date of Enrollment </th>
<th> Password</th>
<th> Edit </th>
</tr>"
;
while (
$row = mysql_fetch_array($query))
{
//foreach( $row = mysql_fetch_object( $query ) )
//{
   /*<li><a href="<?php echo $row['link_url'];
?>
">
<?php
echo $row['link_title'];
?>

*/
// echo "" " " {$row.['user_id']"";
echo "" .$row['user_id'] ."";
// ; //echo "".$row['user_id']."";
echo "" .$row['name'] ."";
echo "" .$row['address'] ."";
echo "" .$row['phone'] ."";
echo "" .$row['email'] ."";
echo "" .$row['dateofenrollment'] ."";
echo "" .$row['password'] ."";
echo "" .'edit'."";
echo "";
}
echo "";
/*
$display=mysql_fetch_assoc($query);
session_start();
if ($_SESSION['$username']= $display['username'] && $_SESSION['$password']= $display['password'])
echo "welcome";
else
echo "invalid username and password";
session_destroy();

// }

//$display=mysql_fetch_assoc($query);
//session_start();
//$_SESSION['id']= $display['user_id'];
//$_SESSION['name']= $display['name'];

/*header("location:account_information.php?page=user_detail");
}
else
echo "incorrect username and password";
*/
?>