TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

random pic help

Page: 1 Reply
Oct 17th 2003#125160 Report
Member since: Aug 29th 2003
Posts: 97
I've had tons of people asking me about a random picture script I used on a site... so I decided to put the script online.

If you're good at php, plz have a look and tell me what you think. If something needs improvement or whatever.

And for those who might need such a script - just grab it!

LINK!
Reply with Quote Reply
Oct 19th 2003#125297 Report
Member since: Jun 30th 2001
Posts: 447
It looks good! However, you might want to take a look at the following PHP functions which provide a better randomizing algorithm: mt_rand and mt_srand
Reply with Quote Reply
Nov 27th 2003#130730 Report
Member since: Nov 6th 2001
Posts: 240
if the images are stored in a MySQL database, you could use this sql query:

SELECT img_name FROM my_images ORDER BY RAND() LIMIT 1
Reply with Quote Reply
Nov 27th 2003#130811 Report
Member since: May 13th 2003
Posts: 644
can you insert a img through PHP ADMIN???

if so can anyone tell me how thanxs a mil.
Reply with Quote Reply
Nov 27th 2003#130816 Report
Member since: Nov 26th 2001
Posts: 2586
phpMyAdmin -> if you create the table, the column for image files is of type BLOB ....

Then in phpMyAdmin when you browse that table you can update it, it has a link button you can browse for that image.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum