PHP Code:
<?php
error_reporting(E_ALL ^ E_NOTICE);
$gallerys = file('gallerys.txt');
if(array_key_exists($_GET['gallery'], $gallerys)){
$forinclude = $gallerys[$_GET['gallery']];
$included = trim($forinclude);
include($included);
}else{
echo '<h1>Select a Gallery</h1>';
}foreach($gallerys as $key => $value){
printf('<a href="?gallery=%s"><img src="/images/gallerys/thumbs/%s.png" border="0" /></a>', $key, $key);
}
?>
Right I want
PHP Code:
$forinclude = $gallerys[$_GET['gallery']];
$included = trim($forinclude);
include($included);
to be bellow the other bit, how can I do it?