I wrote a script where users in my web can create albums and upload some photos in their album.
I need someone to explain to me what i should do to enable members after they open a certain album,and see photos which are
four in a row.
And then if he/she Clicks a photo to be opened in a new page and to be Given a link(Next,previous) for others photos of the album.
i tried some and ended in Displaying only a photo which is being clicked and unable to put the NEXT or Previous link for Other photos of the album.
below is what i tired to do .
i need to put link for other photos of album lets say "CARS".
<?php
include"config.php";
$user=$_SESSION['user'];
if(isset($_GET['id'])){
$photoid=$_GET['id'];
$query = "SELECT *FROM album_photo WHERE (id='$photoid' and user='$user') ";
$result = mysql_query($query, $dbcnx);
$row=mysql_fetch_array($result);
$userid=$row['id'];
$photo=$row['photo'];
echo"<img src=album/$photo width=120 height=155 border=0 >";
}
?>