Hi,
I'm writing a gallery and having a few problems: I have three pages. Main Gallery, Sub Gallery, Picture.
I'm having problems with the sub gallery - writing the session variable as the final picture name in the loop as follows:
<?php
do { ?>
<a href=<? $_SESSION['final_picture'] = $row_Recordset1['thumb_loc']; ?>"main_gallery.php"><img src="<?php echo $row_Recordset1['thumb_loc']; $main_picture[] = $row_Recordset1['thumb_loc'] ?>" alt="" name="image" border="0"></a>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
Can anyone suggest a way simply to take a variable produced to the final page. All it seems to do is write the session variable as the last record in the group. I can understand why it is doing this - but I need a way around to take a specific variable to the final page based on the output of the do loop above.
I hope this is clear.
Any suggestiions welcomed,
thanks,
w.