ok so im trying to code something and this is the error i get
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/realwars/domains/realwars.nl/public_html/crew/helpmenu1.php on line 17
php
and this is the file where the error comes from
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Admin / Crew page - My Profile</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><?php
$dbconn = mysql_connect( "localhost", "user_site", "password");
mysql_select_db("user_site", $dbconn);
$id3 = $_SESSION['SESS_MEMBER_ID'];
$query2 = mysql_query("SELECT isstaff5,isstaff4,isstaff,isstaff2,isstaff3,isstaffleader2 FROM site_user WHERE userID='$id3'");
while ($list2 = mysql_fetch_object($query2)) {
$isstaff5 = "$list2->isstaff5";
$isstaff4 = "$list2->isstaff4";
$isstaff = "$list2->isstaff";
$isstaff2 = "$list2->isstaff2";
$isstaff3 = "$list2->isstaff3";
$isstaffleader2 = "$list2->isstaffleader2";
echo "<tr>";
echo "<td><br><b><font color=\"red\">Suboptions: </font></b></b></td>";
if ($isstaffleader2 == 1 OR $isstaff5 == 1){
echo "<td><b> | <a href=\"addac1.php\">Add Member</a></b></td>";
echo "<td><b> | <a href=\"delac1.php\">Del Member</a></b></td>";
}
}
?>
Any help?