Need pm by code for lavalair
Started on the old forum in August 2009 · view the original in the archive · old links redirect here
give more info bout the script i think its already posted here
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
$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/>";
}
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH
$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/>";
}
}