= 1) { echo '

'; echo ''; $var = $_SERVER['REQUEST_URI']; $adres = substr_replace($var, 'paintview', 0, 6); $count = 0; while ($row = mysql_fetch_array($res)) { if ($count == 4) { echo ''; $count = 0; } $count = $count + 1; echo ''; } echo ''; echo '
Page: '; for ($i=1; $i<=$total_pages; $i++) { if ($page == $i) { echo ''.$i.' '; } else { echo ''.$i.' '; } }; echo '
Click image thumbnail to enlarge
Displaying '.$num_rows.' of '.$total_records.' '; if ($num_rows == 1) { echo 'photo'; } else { echo 'photos'; } echo ' matching your criteria:'; echo '

Info | Buy

All pictures copyright © by the photographer
Page: '; for ($i=1; $i<=$total_pages; $i++) { if ($page == $i) { echo ''.$i.' '; } else { echo ''.$i.' '; } }; echo '

'; } else { if (!$iets == 0) { echo '
Your search for '. $iets .' gave no results.
'; } } } ?>