any one can share handling all repoted pm by one clck for lavalair wml code
ShaK!L AhammeD
Sklifbd.CoM +88-01730039272
Started on the old forum in March 2010 · view the original in the archive · old links redirect here
any one can share handling all repoted pm by one clck for lavalair wml code
Sklifbd.CoM +88-01730039272
$sql = "SELECT id, text, byuid, touid, timesent FROM ibwf_private WHERE reported='1'";
$items = mysql_query($sql);
$erors = 0;
while ($item=@mysql_fetch_array($items)){
$c = mysql_query("UPDATE ibwf_private SET reported='2' WHERE id='".$item[0]."'");
if($c)$x= mysql_query("INSERT INTO ibwf_mlog SET action='Handle in mass', details='<b>".getnick_uid(getuid_sid($sid))."</b> handle pm ".$item[0]."', actdt='".time()."'");
if($c==false && x==false)$erors++;
}
if($erors==0)echo "All the reported pm were handled succesfull<br/>"; else echo "The db sucks. $erors erors<br/>";
9:42 the time from the clock that means tha code can be wrong 😛 tell me if it doesnt work:)
nice codes.. but it is good if u have the tool first for owner...
our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);