Доска почета mp3forum.ru



999 and mgroup!=5 order by posts desc"; $q_res=$db->exec_sql($sql); if ($q_res<1) echo("Mysql error: ".mysql_error()."
"); $db->exec_sql($sql); $num=0; for ($i=0; ($db->result_row($array)>0)&&($i<300); $i++) { $id=$array[0]; $sql1="SELECT avatar_location, avatar_type FROM ibf_member_extra where id=".$id.""; $q_res1=$db->exec_sql1($sql1); if ($q_res1<1) echo("Mysql error: ".mysql_error()."
"); $db->exec_sql1($sql1); $db->result_row1($array); $avatar=$array[0]; $avatar_type=$array[1]; //echo $avatar; //$av1=strpos($avatar, "http:"); $brake=$num/15; if (($brake==1)||($brake==2)||($brake==3)||($brake==4)||($brake==5)||($brake==6)||($brake==7)||($brake==8)||($brake==9)||($brake==10)||($brake==11)||($brake==12)||($brake==13)||($brake==14)||($brake==15)||($brake==16)||($brake==17)||($brake==18)||($brake==19)||($brake==20)) { if ($avatar!="noavatar") echo "
"; } if ($avatar=="noavatar") $num=($num-1); elseif ($avatar_type=="url") //echo $avatar; echo "\"\""; elseif ($avatar_type=="upload") { $avatar=str_replace("upload:","",$avatar); echo "\"\""; } else { echo "\"\""; } $num++; } ?>




1000 постов ;)


Обсуждение