Hello,
I'm kinda new to php and still earning.
So I have upload form wich uploads image to foldar and save name to database(mysql). So far i have this:
$sql="select * from images order by ID ASC LIMIT 1, 1";
$result = mysql_query($sql) or die (mysql_error());
while($row = mysql_fetch_assoc($result)){
echo "<div id=\"picture\">";
echo "<p>";
echo "<img src=\"upload/" . $row['filename'] . "\" alt=\"\" /><br />";
echo $row['caption'] . "<br />";
echo "</p>";
echo "</div>";
How can I change the code to show me one image at the time.. Like sort of gallery with buttons 'next' and 'prev' to change images?
In DB I store 'id', 'caption' and 'filename'.