Hi
A site that I have developed using simple PHP has now stopped working since the hosting company disabled register_globals.
This is the website: http://www.markfennell.co.uk/gallery.php
If you click on the different thumbnails you can see that the querystring chages, which should change the image on the left hand side, but it has stopped working.
This is my code at the top of the page:
<?php
$link = $_GET['gallery&art'];
if ( $art == "" & $gallery == "" ) {
$art = '1';
$gallery = '1';
}
?>
This is the code foe the left hand side (big) image:
<img src="art/<? echo "$art"; ?>.jpg">
And this is the code for the thumbnails:
<?
$link = $GET['gallery'];
if ( $gallery == "1" ) {
$art = array (1,2,3,4,5,6,7,8,9,10,11,12);
foreach ( $art as $val )
print "<a href='gallery.php?gallery=1&art={$val}'><img src='art/{$val}sm.jpg' alt='Click to see full image' border='0'></a>";
} else if ( $gallery == "2" ) {
$art = array (24,13,14,15,16,17,20,22,23,25);
foreach ( $art as $val )
print "<a href='gallery.php?gallery=2&art={$val}'><img src='art/{$val}_sm.jpg' alt='Click to see full image' border='0'></a>";
}
?>
Any ideas on how to fix it?
Thanks
Steve