I have a database table called 'uploads' that has filepaths to uploaded images in a 'filepath' column.
i want to be able to display these images, 1 at a time( with some kind of 'next' and 'previous' button to come at a later date) on a page.
so i know i need to connect to the database as usual and then query it, and then display the result of this query within an img tag, but besides from this i dont know the exact method and what ive got so far doesnt work. database connection has happened further up the script..
<?php
$result=mysql_query("SELECT 'filepath' FROM 'uploads'");
?>
<img src="<?php echo($result)?>" />
can somebody give me some help with this please,
thanks!