$upload_dir = dirname(__DIR__) . "/pics/";
$res = mysql_query("SELECT m.*, p.`title` FROM `mainpage_eng` as m, `person_eng` as p WHERE m.`on_site`=1 AND m.`person`=p.`id` ORDER BY m.`out_order`");
while($row = mysql_fetch_array($res)) {
$s = getimagesize(dirname(__DIR__) . "/pics/" . $row['foto']);
?>
}
?>