| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| We Buy We Sell Join Date: Feb 2005 Location: payperclick.biz
Posts: 972
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | php problem! Please help! Hi I want to make 1 banner appear on my site 50% of the time, the rest to appear RANDOMLY! Anyone help me with this scrip in php please ? Thanks.
__________________ Pay Per Click Forum - Hot night clubs - Holiday Forum - British Petroleum - BGR Bloomer - Poker Forum - charity-gift.com - payperclick.biz - ahmadyar.co.uk - jmlcoupons.com - hotclubs.co.uk - totallymoney.info - bgrbloomer.com - edinburghinternetmarketing.com - efficientsearch.co.uk - HolidayForum.co.uk - BritishPetroleum.info - Adpreviewtool.com |
| |
| | THREAD STARTER #3 (permalink) |
| We Buy We Sell Join Date: Feb 2005 Location: payperclick.biz
Posts: 972
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i dont want to use the random function for the main banner, what i am looking is SHOW banner 1 50 % , Then show rest Randomly other 50% . There must be a way to do that!!??!
__________________ Pay Per Click Forum - Hot night clubs - Holiday Forum - British Petroleum - BGR Bloomer - Poker Forum - charity-gift.com - payperclick.biz - ahmadyar.co.uk - jmlcoupons.com - hotclubs.co.uk - totallymoney.info - bgrbloomer.com - edinburghinternetmarketing.com - efficientsearch.co.uk - HolidayForum.co.uk - BritishPetroleum.info - Adpreviewtool.com |
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/74783-php-problem-please-help.html think about the rand function, then incorporate into your code. | ||||
| |
| | #5 (permalink) |
| Account Closed Join Date: Oct 2004 Location: England
Posts: 926
![]() ![]() ![]() ![]() | You will get to do it using the rand function... like I said if the random number is over 50 then display the banner, else display any other banner.. if you make the rand(1, 100) then the main banner has a 50% chance of coming out.. |
| |
| | THREAD STARTER #6 (permalink) |
| We Buy We Sell Join Date: Feb 2005 Location: payperclick.biz
Posts: 972
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Working thanks.
__________________ Pay Per Click Forum - Hot night clubs - Holiday Forum - British Petroleum - BGR Bloomer - Poker Forum - charity-gift.com - payperclick.biz - ahmadyar.co.uk - jmlcoupons.com - hotclubs.co.uk - totallymoney.info - bgrbloomer.com - edinburghinternetmarketing.com - efficientsearch.co.uk - HolidayForum.co.uk - BritishPetroleum.info - Adpreviewtool.com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 12:35 PM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 10:09 AM |
| PHP Problem on a website? | aal814 | Web Design Discussion | 1 | 12-29-2004 11:53 AM |
| ~~NEWS~~ HUGE PHP Security Problem - How To Upgrade PHP / cPanel / Zend | ToddW | For Sale / Advertising Board | 0 | 12-22-2004 12:04 AM |