bigjoe11a wrote:Ok, what your takking about is a image gallery. A image gallery shows images and descriptions of the images from a mysql database. As for your slide show, That you would have to use some thing like Jquery or some thing in general that will let you do this. Or you could just let the page do it for you. When the page loads. a new image is displayed. or
If your wanted more then that. Like an image to to display for like 10 sec's and then another image to display. I can help you with this.
Your looking at a lot of coding for what your trying to do. So I think your will have to deside on just what your wanting to do.
Let me know
bigjoe11a wrote:Well like I said. That will require some coding. How ever if you wanted an idea on how to do it. Then I would go to http://www.youtube.com and then do a search for phpclass. He has lots of video tutorials and this all so includes a way to upload images and then display them . It would be easy for you to do then for us to take out that a mount of time to code you a complete image gallery.
bigjoe11a wrote:Well like I said. That video tutorial will show you how to do all that. It will show you the images and a description from my mysql database. Let me know if you find the right one.
Code: Select all
function findexts ($filename)
$filename = strtolower($filename) ;
$exts = split("[/\\.]", $filename) ;
$n = count($exts)-1;
$exts = $exts[$n];
//This gets all the other information from the form
// Connects to your Database
mysql_connect("localhost", "username", "password") or die(mysql_error()) ;
mysql_select_db("database") or die(mysql_error()) ;
//Writes the information to the database
mysql_query("INSERT INTO `employees` VALUES ('$vehichle', '$contact', '$uploaded')") ;
//This applies the function to our file
$ext = findexts ($_FILES['uploaded']['name']) ;
//This line assigns a random number to a variable. You could also use a timestamp here if you prefer.
$ran = rand () ;
//This takes the random number (or timestamp) you generated and adds a . on the end, so it is ready of the file extension to be appended.
$ran2 = $ran.".";
//This assigns the subdirectory you want to save into... make sure it exists!
$target = "images22/";
//This combines the directory, the random file name, and the extension
$target = $target . $ran2.$ext;
echo "The file has been uploaded as ".$ran2.$ext;
echo "Sorry, there was a problem uploading your file.";
Code: Select all
echo '<img src="'.$image_path.'/'.$row['rimage'].'">';
echo 'File Name : '.$row['filename'];
Users browsing this forum: Bing [Bot] and 1 guest