hey frnds its my frnds.php code in this
when i want to show my frnds.php?act=list
its not excute chk out last code where is wrong in this..
error in this line
$getfrlist=$db->select("SELECT * FROM b_budy WHERE r_id='$user->userid' AND pendg='0'");
bcoz of this list not show some mistek in this i cant figure out so help me
when i want to show my frnds.php?act=list
its not excute chk out last code where is wrong in this..
PHP Code:
case "list":
print "<div class='catSides'>Your Buddy list : <br/></div>";
$getfrlist=$db->select("SELECT * FROM b_budy WHERE r_id='$user->userid' AND pendg='0'");
if($getfrlist)
{
foreach($getfrlist as $frlist)
{
$frid=$frlist->u_id;
$frridname=getusernamebyid($frid);
$frinavatar=getuseravatarbyid($frid);
print "<img src='".$config->url."/avatar/$frinavatar' alt='avatar'/> <a href=''".$config->url."/profile.php?uid=$frid''>$frridname</a><hr>";
}
}
break;
default:
forward("index.php");
}
?>
<?php include "footer.php"; ?>
error in this line
$getfrlist=$db->select("SELECT * FROM b_budy WHERE r_id='$user->userid' AND pendg='0'");
bcoz of this list not show some mistek in this i cant figure out so help me
Comment