![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
|
PHP Random images + LINKS on each one
Hi, I have a problem. I have an HTML file with this line:
<a href="#"><img class="ads" src="ads/randomimage5.php" /></a> The "randomimages5.php" is this: PHP Code:
__________________
"What are you doing, Akane?" "Nothing." "Let's go!" "Okay." Last edited by lykos92; 06-17-2009 at 03:50 PM. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
|
Re: PHP Random images + LINKS on each one
All right, I found this code:
PHP Code:
Is there a way to put it many times into an HTML file? I know it is, but it appears the same picture in every page. This is because the browser connects with the PHP on the server only once and it shows the result whenever it is needed. But I would like a script that connects to the PHP every time it is mentioned in the HTML file, not only the first one. I believe that this can be easy, through javascript. Thanks.
__________________
"What are you doing, Akane?" "Nothing." "Let's go!" "Okay." |
|
|
|
|
|
#3 (permalink) |
|
Design Team Member
|
Re: PHP Random images + LINKS on each one
Maybe try adding a random number at the end of each instance - like "randomimage.php?random=30098j0439d873"...
__________________
Free Resources PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |Web Design/Programming - KompoZer (Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting | |
|
|
|
![]() |
| Thread Tools | |
|
|