| | |
How to rotate top page banner using php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2006
Posts: 197
Reputation:
Solved Threads: 5
Hai friends,
I am very confused this task. please help me.
if five banners are stored in one location , I want to displayall the banners simultaniously in my application.
How to rotate the webpage top banner ? In my application i am getting the immage details using database.
Please send me any idea.
__________________
Thanks
Vssp
I am very confused this task. please help me.
if five banners are stored in one location , I want to displayall the banners simultaniously in my application.
How to rotate the webpage top banner ? In my application i am getting the immage details using database.
Please send me any idea.
__________________
Thanks
Vssp
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
Here's a rough idea of one way you can do it.
PHP Syntax (Toggle Plain Text)
function change($current_banner) { $number_of_banners = 5; if ($current_banner < $number_of_banners) { $current_banner++; } else { $current_banner = 0; } return $current_banner; }
PHP Syntax (Toggle Plain Text)
function get_filename($current_banner) { select $current_banner { case 1: $filename = "thebannername.jpg"; ... } }
PHP Syntax (Toggle Plain Text)
//Display the banner //Get filename $filename = get_filename($current_banner) //Use filename in HTML echo "<img src=\"" . $filename . "\">"; //Go to next banner $current_banner = change($current_banner);
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Similar Threads
- website re-designed please review... (Website Reviews)
- New and stuck on old problem (Community Introductions)
- I need some harsh criticism (Website Reviews)
- How do I remove this banner? (PHP)
- PHP Include ... Quote quirk (PHP)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the PHP Forum
- Previous Thread: Calling a PHP function from HTML menu
- Next Thread: PHP soon need to know more about FTP
Views: 1956 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database dataentry date directory display download dynamic echo email error file files firstoptioninphpdroplist folder form forms freelancing function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table tutorial tutorials update updates upload url validation validator variable video web white xml youtube





