Parabolundertow Posted February 14, 2007 Share Posted February 14, 2007 Hi there, Im hoping you can help me. I'm looking for a way to randomly pull an image or swf file from a directory and display it on my page. I have tried a few php scripts but none so far will let me use swf files... only images. Also .. if there is such a script, is there a way to populate these files drom a database, so I can add a counter when a "banner" is clicked. Thanks Warren Quote Link to comment Share on other sites More sharing options...
The Bat Posted February 14, 2007 Share Posted February 14, 2007 Take a look at PHP's shuffle() function. Quote Link to comment Share on other sites More sharing options...
Parabolundertow Posted February 14, 2007 Author Share Posted February 14, 2007 hi there - thanks for your help. I used rand() then echoed the random dumber into my <img src> Great stuff Thanks 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.