Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old June 13th, 2005, 07:14 AM
Amp Amp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United States
Posts: 1 Amp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Amp
REQUEST: Image Change on Refresh

I got the book PHP 5 and MySQL and the only thin I undedrstood in the book was the link to this site, that shows how incompetent I am.

I need to know how to make an image change when you refresh, it should change from a set of images in a database type of thing, so you got like 10 images and everytime the viewer refreshes the page the image changes, I think PHP is capable of doing this...

Anybody that can help me with this either post or contact me:
AIM - sephiroth10096
XFire - 43rdtrtseth
MSN - xenocide664@yahoo.com

plz help

Reply With Quote
  #2  
Old June 13th, 2005, 12:20 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: REQUEST: Image Change on Refresh

this could be done several ways, even with javascript. here is one example with PHP
php Code:
Original - php Code
  1.  
  2. $input = array("image1.jpg",
  3.                "image2.jpg",
  4.                "image3.jpg",
  5.                "image4.jpg",
  6.                "image5.jpg");
  7. $site = "http://somesite.com/images/";
  8. $random = array_rand($input, 1);
  9. echo '<img src="'.$site.$random.'">';;

i am curious, what book are you reading that mentioned codewalkers, and from what publisher?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > REQUEST: Image Change on Refresh


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway