web_master Posted July 30, 2007 Share Posted July 30, 2007 Hi, how can I made a slideshow in PHP? <?php // Query $query_return = mysql_query("SELECT * FROM `table` ORDER BY `table_id` ASC"); if(!$query_return){ echo mysql_error(); exit; } while($request = mysql_fetch_array($query_return)) { // File reload $file = "file_dir/".$request['table_id']."_file.jpg"; if(is_file($file)){ $file_print = "<img src=\"".$file."\" alt=\"\" border=\"0\" />"; }else{ $file_print = ""; } print $file_print; } ?> Thanks in adwanced. Link to comment https://forums.phpfreaks.com/topic/62441-php-slide-show/ Share on other sites More sharing options...
web_master Posted July 30, 2007 Author Share Posted July 30, 2007 OR, how can I made a random pictures view on every page load if the slide-show is a problem... Link to comment https://forums.phpfreaks.com/topic/62441-php-slide-show/#findComment-310801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.