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. Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.