echo "<table cellpadding=\"5\" width=\"100\"><tr><td align=\"center\">أعمالنـا</td></tr><tr><td align=\"center\">";
echo "<marquee onmouseover=\"this.stop()\" onmouseout=\"this.start()\" scrollAmount=\"1\" scrollDelay=\"10\" direction=\"up\" height=\"180\" align=\"center\" width=\"100\">" ;
$i = 0 ;
$sql1 = @mysql_query("select * from pic order by date desc ") ;
while($res1 = @mysql_fetch_array($sql1)) {
$img = $res1['pic'] ;
$gid = $res1['galleryid'] ;
$pid = $res1['picid'] ;
$sql2 = @mysql_query("select * from categories where gallid = '$g
id' limit 1 ") ;
$F4galloc = @mysql_fetch_array($sql2) ;
$mYfolder = $F4galloc['galloc'] ;
$i = $i++ ;
if($i == 50) {
sleep(3) ;
$i = 0 ;
}
echo "<a href=\"<img src=\"pic/$mYfolder/thumb/$img\" border=\"0\"><br><br>";
}
echo "</marquee></td></tr></table>";