Websat-
Does your website run Wordpress, as there is a nifty plugin for Wordpress that allows you to display photos called Zenshow. Otherwise, you may have to code a routine to grab the random images from the database and display them. I have a random function that works within Zenphoto. Let me see if it can modified to work in your scenario.
Thinkdreams.
Cool. You should share it on the forums so others may benefit from your code.
ok, the main page is index.php who include with a menu other page named page-name.inc.php, the code for index.php is here: http://test.websat-telecom.com/index.php.txt
The code for the page where i want to have a random pic from zenphoto is here: http://test.websat-telecom.com/index.inc.php.txt
thanks for your help
Patience please websat. We all have jobs, and are busy. I'm working with some ideas, but I have to work around my work schedule (8-5 M-F) and my personal responsibilities. We are all here on a voluntary basis. Others on the forum are under the same constraints I'm sure. So in other words, it may take time to get an answer to you, but if I don't someone else may have a quicker answer.
And those two links listed above to the php code of your website are not valid right now.
Ok, no problems thanks for your answer and your help, the links are now here:
The code for the index
http://www.websat-telecom.com/index.php.txt
The code for the page where i want to have a random pic from zenphoto is here: http://www.websat-telecom.com/index.inc.php.txt
I can probably give you a push in the right direction. Take a look at Zenshow, a plugin designed to pull random images from the Zenphoto DB within Wordpress. There is a function in the code that deals with random photos. You may be able to rework that code to your needs, as it is just a SQL query to the zenphoto DB. That would be my suggestion on where to start. You can obtain Zenshow from a link somewhere on the wiki.
That should get you started.