For those who yet didnt know (CGP) Im marcio,any way im abit puzzled i wana put the pm alert code in the ravingwap script smiler to this
if($pmon > 0){
$newpersonals = mysql_query("select * from `".$px.$ltable."` where to_user='".$username."' and new=1;");
$inmess = mysql_num_rows($newpersonals);
$newinfo = mysql_query("select * from `".$px.$ltable."` where to_user='".$username."' and new='1' LIMIT 1");
if($inmess > 0){
while ($row = mysql_fetch_array($newinfo)) {
@mysql_query("update `".$px.$ltable."` set new=0 where id='".$row[0]."';");
$msg = replace_smi($row[4]);
print "
[b]POPUP PM[/b]
[b]------[/b]
[size="1"][b]From: [/b]$row[1][/size]
[size="1"][b]Subject:[/b]$row[3][/size]
[size="1"][b]Message:[/b]$msg[/size]
[size="1"]Message:[/size]
<input type=\"text\" name=\"letter\"/>
<anchor>
[Send Reply]
<go href=\"pm/send.php?id=$chatid&pass=$password\" method=\"get\">
<postfield name=\"to\" value=\"$row[1]\"/>
<postfield name=\"subject\" value=\"-\"/>
<postfield name=\"letter\" value=\"$(letter)\"/>
</go></anchor>
";
print "<anchor>[Clear Pm]<go href=\"\"></go></anchor>";
}
print "</p></card></wml>";
Doesnt seem to work tho note: this is the first time im using this code, is there any one with the proper code or that has knowloge on this please help?