urgido
06-11-2007, 06:26 AM
$userM=$_SESSION['gid'];
$checkMSG="SELECT id,recipient,subject,body,emailed,sender,unread,folder FROM gid_msg WHERE recipient='$userM'";
$res=mysql_query(mysql_query);
while($fila = mysql_fetch_assoc($res)) {
echo $fila["subject"];
}
ERROR:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in *********** on line 11
My line 11 is:
while($fila = mysql_fetch_assoc($res)) {
What's wrong?
Regards:confused:
$checkMSG="SELECT id,recipient,subject,body,emailed,sender,unread,folder FROM gid_msg WHERE recipient='$userM'";
$res=mysql_query(mysql_query);
while($fila = mysql_fetch_assoc($res)) {
echo $fila["subject"];
}
ERROR:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in *********** on line 11
My line 11 is:
while($fila = mysql_fetch_assoc($res)) {
What's wrong?
Regards:confused: