![]() |
how do i write a php so code so that the galleries change everytime
how do i write a php so code so that the galleries change everytime (everytime the site is reloaded)
same as chockers galleries i think |
Bump. :)
|
Code:
<?php |
Quote:
|
if you have an array of galleries have a look at shuffle function
if you have them in db then look at mysql rand function |
icq me 243680554
|
Quote:
|
use perl, make a txt file full of gallery_urls, descriptions, thumb_count, category. Make a perl script that will print from the txt file on load. :) DONE-ZO :)
|
PHP Code:
Open up notepad and paste all your galleries into it. And make sure you only put one gallery per line. Save it as galleries.txt http://site.com/gallery1.html http://site.com/gallery3.html http://site.com/gallery4.html http://site.com/gallery5.html etc. Then just upload and you're done. |
Or if the gallery urls and such are already in a database just create a query to pull out random galleries.
SELECT * FROM galleries_table ORDER BY Rand() LIMIT 100; will pull out 100 random galleries from the galleries table. If its in mysql that is. |
Thanks alot
|
| All times are GMT -7. The time now is 04:55 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123