hi there all i am trying to do a bit of coding but got a error i been working on this for a few days but not getting it to work any chance some one can help me please this what i got in my inbex page
and this what i got in my core
i keep getting error
hope some one help me fix this please this is so members can turn there inboxes on and off just like pop ups:o
Code:
$private = mysql_fetch_array(mysql_query("SELECT private FROM ibwf_users WHERE id='".$uid."'"));
if($private[0]==0){
echo "<a href=\"index.php?action=inboxenable&sid=$sid\">»Enable inbox</a><br/>";
}else{
echo "<a href=\"index.php?action=inboxdisable&sid=$sid\">»Disable Inbox</a><br/>";
}
Code:
/////////////////////////////////////////////inboxs on
function inboxson($who)
{
$res = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE id='".$who."' AND readmsg='1'"));
if($res[0]>0)
{
return true;
}
return false;
}
Code:
[B]Warning[/B]: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [B]/home/********/public_html/web/index.php[/B] on line [B]662[/B]
hope some one help me fix this please this is so members can turn there inboxes on and off just like pop ups:o
Comment