
September 15th, 2007, 02:31 AM
|
| Administrator
Join Date: Jun 2007
Posts: 3,709
BRL$: 42,937.25 Thanks: 0
Thanked 14 Times in 10 Posts
Rep Power: 409 | | get random image from DB... modfiy script help. :D Hello, Im currently doing a random iamge script/system Ok, the guy is currently using this script: PHP: --------- --------- and has To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. this script selects a random image form the folder and shows.. im now making the whole uplaod and a moderation system for this and im planning to have a simple db table with ID | imagefile | status on upload it auto inserts a entry with the filename.ext and the status as moderate or soemthing... then have a thing so once image has been checked ut updates status... anyway... ] so how can i have the above script select a random image which has a status of live (or whatever i choose) and also possibly add a check that it exists. i mean i can do the sql query and if exists check its just im not sure how to go about getting the result of these files and then haveing it select on at random??? I hope you get what i mean here! because i jsut confused myself. Anwyay thanks Tp for good answers! Dan To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. █ Jobs In !!! - Post Jobs, Hire Employees, Create Blogs and
Earn Money. | | | |