hi,anybody can help me by give pm by code for lavalair?thanks
Need pm by code for lavalair
Collapse
X
-
Code:$umsg = getunreadpm(getuid_sid($sid)); $item = mysql_fetch_array(mysql_query("SELECT a.name, b.id FROM ibwf_users a INNER JOIN ibwf_private b ON a.id = b.byuid WHERE b.touid='".$uid."' AND b.unread='1' ORDER BY b.timesent DESC LIMIT 1")); if($umsg>0) { echo "You have got <a href=\"inbox.php?action=main&sid=$sid\">$umsg</a> PM<br/>"; echo "Last PM by <a href=\"inbox.php?action=readpm&pmid=$item[1]&sid=$sid\">$item[0]</a><br/>"; }
Comment
-
PHP Code:$umsg = getunreadpm(getuid_sid($sid));
$rukiya= mysql_query("SELECT
a.name, b.id FROM ibwf_users a
INNER JOIN ibwf_private b ON a.id = b.byuid
WHERE b.touid=$uid AND b.unread=1
ORDER BY b.timesent DESC");
if($umsg>0)
{
echo "You have got <a href=\"inbox.php?action=main&sid=$sid\">$umsg</a> unread PMs<br/>";
while ($item = mysql_fetch_row($rukiya))
{
echo "<a href=\"inbox.php?action=readpm&pmid=$item[1]&sid=$sid\">$item[0]</a><br/>";
}
}
Comment
Comment