Thank you so much for your support, guys!
I did as you recommended - it dioesn't work now yet
but i'm very sleepy and tomorrow i have to leave for some
time(family things)
but i will to look through it a gain in a few days!
Here's my code again (just in case)
<?
require ("page.inc");
$content="";
class GalleryPage extends Page
{ function Display()
{
echo "<html>\n<head>\n";
$this -> DisplayTitle();
$this -> DisplayKeywords();
$this -> DisplayContentdescription();
$this -> DisplayStyles();
echo "</head>\n<body cellspacing=0 cellpadding=0
leftmargin=0 rightmargin=0 topmargin=0 marginheight=0 marginwidth=0>\n";
$this -> DisplayHeader();
$this -> DisplayMenu($this->buttons);
echo $this->content;
$this -> DisplayFooter();
echo "</body>\n</html>\n";
}
}
$a = "0" ;
$content .= '<table width="100%" border="0" cellspacing="5"
cellpadding="5">';
$con = mysql_connect("localhost","db","passw")or die(mysql_error());
mysql_select_db("members",$con)or die(mysql_error());
$query="SELECT photo from members, photos
WHERE members.memberid=photos.memberid AND small='y' ";
$result=mysql_query($query)
or die(mysql_error());
while ($row = mysql_fetch_array($result) ) {
if (($a==0)||($a%5)==0) {$content='</tr><tr>'; }
$content .= '<td><img src=" '.$row['photo'].'"
border=0></td> ';
$a = $a +1;
}
$content='</table> ';
$gallery = new GalleryPage();
$gallery -> SetContent($content);
$gallery->Display();
?>
thank you again, i love this ofrum and all of you!
🙂