There is two sections i need it to update. When they hover over the members name listed below, I need it to show their details. When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have a 1 in now. Look for bolded items below.
This is all on the same form, and I would like for the PHP code above to get the userID=???? from the link listed below. Is this possible?
<?PHP
require_once("include/membersite_config.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
?>
<?php
require_once 'include/myacctconfig.php';
include 'vars.php';
$id = $_GET['userID'];** <-----Value Needed**
$query="SELECT * FROM fgusers3 WHERE id_user = $id.";
$rs = mysql_query($query);
$details = mysql_fetch_array($rs);
$query="SELECT * FROM moredetails WHERE id_user = $id." ;
$rs = mysql_query($query);
$mdetails = mysql_fetch_array($rs);
?>
<!DOCTYPE html>
<head>
<title>Untitled Document</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script>
<style type="text/css">
.theDiv {
display: none;
margin-top:-7px;
background-color:#fff;
width: 500px;
line-height:100%;
border:1px solid #c3c3c3;
background:#fff;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
position: relative;
padding: 10px;
}
</style>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$('.theLinks').hover(
function () {
$(this).closest('.content3').next('.theDiv').fadeIn();
},
function () {
$(this).closest('.content3').next('.theDiv').hide();
});
});//]]>
</script>
</head>
<body>
<div>
<div class="content3">
<div>
<div class="theLinks">
<div><a href="<?php echo $_SERVER['PHP_SELF']?>?userID=1">Members Name</a>**<----where it is stored...**
</div>
</div>
</div>
</div>
<div class="theDiv">
<table>
<tr>
<td><img class="imgb" align="top" src="profilepics/<?php echo $details['profilepic']; ?>" width="100" height="100">
</td>
<td valign="top">Name: <?php echo $details['name'] ?><br><br>Email: <?php echo $details['email'] ?><br><br>Username: <?php echo $details['username'] ?><br><br>Favorite Exercise: <?php echo $mdetails['favexercise']; ?><br><br>Years Exercising: <?php echo $mdetails['yearsexercise']; ?>
</td>
</table>
</div>
</div>
</body>
</html>