= 1){ $size = getimagesize ("$imgdir/$a_img[0]"); $old_x=round($size[0]); $old_y=round($size[1]); //echo"X= $old_x <---> Y=$old_y"; if($old_x >= 700){ $new_w= 700; }else{ $new_w=$old_x; } if($old_y >= 90){ $new_h=90; }else{ $new_h=$old_y; } if($old_x == $old_y && $old_y <= 90){ $new_w=$old_x; $new_h=$old_y; } if($old_x == $old_y && $old_y >=90){ $new_w=90; $new_h=90; } if ($old_x > $old_y) { $thumb_w=$new_w; $thumb_h=$old_y*($new_w/$old_x); } if ($old_x < $old_y) { $thumb_w=$old_x*($new_h/$old_y); $thumb_h=$new_h; } if ($old_x == $old_y) { $thumb_w=$new_w; $thumb_h=$new_h; } $showpic=""; }else{ $showpic=""; } // Layout ophalen $query = "SELECT * FROM layout WHERE id = '1'"; $result =mysql_query($query) or die ("Fout: ".mysql_error()); list($style_id, $style) = mysql_fetch_row($result); // Juiste pagina inhoud selecteren $page=$_GET["page"]; $in=$_GET["in"]; if ($page == ""){ $query="SELECT * FROM ".$_SESSION['lang']." ORDER by pagina_id ASC"; $result = mysql_query($query); // query sturen if(!$result) { die(mysql_error()); //foutmelding weergeven } $aantal_rijen = mysql_num_rows($result); // als er rijen gevonden zijn... if ($aantal_rijen > 0) { // alle rijen een voor een aflopen... for ($i = 0; $i < $aantal_rijen; $i++){ $pagina_id = mysql_result($result, $i, 'pagina_id'); $pagina_naam = mysql_result($result, $i, 'pagina_naam'); $pagina_inhoud = mysql_result($result, $i, 'pagina_inhoud'); $pagina_icon = mysql_result($result, $i, 'pagina_icon'); $pagina_extra = mysql_result($result, $i, 'pagina_extra'); $pagina_start = mysql_result($result, $i, 'pagina_start'); if ($pagina_start == "ON"){ $page="$pagina_naam"; } } } } ?> ">
 
 
   
 
  Access denied for user ''@'localhost' (using password: NO)