when I run the page now i get white
not sure where I have gone worng now
trying to pass the userif number to bring up the user and there awards..
if I take out the $iduser and make it a number it works... what im I doing wrng
if(isset($_GET['iduser'])) {
$iduser = mysql_real_escape_string($_GET[’iduser’]);
$query = "SELECT userName, awdName, award_user_date, award_user_area, award_user_info, award_user_event, user.userID FROM award_user, award, user WHERE user.userID = award_user.userID AND award.awdID = award_user.awdID AND userID = '" . $iduser . " ' order by award_user_date DESC;";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$chkname=temp;
$i=0;
while ($i < $num) {
$userID=mysql_result($result,$i,"userID");
$userName=mysql_result($result,$i,"userName");
$awdName=mysql_result($result,$i,"awdName");
$award_user_date=mysql_result($result,$i,"award_user_date");
$area=mysql_result($result,$i,"award_user_area");
$info=mysql_result($result,$i,"award_user_info");
$event=mysql_result($result,$i,"award_user_event");
if ($userName<>$chkname)
{print "<tr><td style='background-color:#aaaaaa;' colspan='3'>$userID <b>$userName</b></td></tr><tr style='background-color:#cccccc;width:150px;vertical-align:top;'><td>$awdName</td><td>$award_user_date</td><td>";}
else
{print "<tr style='vertical-align:top;background-color:#cccccc;'><td>$awdName</td><td>$award_user_date</td><td>";}
if ($area<> ''){
print "$area ";
}
if ($event<> ''){
print "$event";
}
if (($area == '' ) && ($event == '')){
print "$info";
}
else {
print "<br /> $info";
}
$chkname=mysql_result($result,$i,"userName");
$i++;
print "</td></tr><tr><td>ran query</td></tr>";
}
} else {
// what should the MySQL query be if there wasn't a letter
// passed in the URL? do that here.
print "none";
}
?>