guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...
/////////////////////Get unread number of pms form you
function getunreadpm($uid,$you)
{
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'"));
return $nopm[0];
}
The problem is when i add that to core.php error occurs and it says
unable to redeclaire getunreadpm() already exist in line etc,etc..
What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..
echo "<b><small>Unread PMs:</small></b> ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you<br/>";
/////////////////////Get unread number of pms form you
function getunreadpm($uid,$you)
{
$nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'"));
return $nopm[0];
}
The problem is when i add that to core.php error occurs and it says
unable to redeclaire getunreadpm() already exist in line etc,etc..
What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..
echo "<b><small>Unread PMs:</small></b> ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you<br/>";
Comment