User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,251 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,113 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Display random image from database and...

Join Date: May 2006
Posts: 69
Reputation: mikki2 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
mikki2 mikki2 is offline Offline
Junior Poster in Training

Re: Display random image from database and...

  #4  
Mar 16th, 2008
ok i've tried it out and it works perfectly, thanks! i just have one slight problem though, when i use SELECT car_name, LEFT(car_desc, 20), car_image FROM cars ORDER BY RAND() the description doesnt get displayed under the image, but using SELECT car_name, car_desc, car_image FROM cars ORDER BY RAND() it gets displayed. any ideas? i will keep trying to figure it out though
Last edited by mikki2 : Mar 16th, 2008 at 10:55 pm.
Reply With Quote  
All times are GMT -4. The time now is 8:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC