•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,802 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 3,431 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
Views: 1243 | Replies: 2
![]() |
•
•
Join Date: Jul 2006
Posts: 176
Reputation:
Rep Power: 3
Solved Threads: 4
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
Location: North East Indiana
Posts: 491
Reputation:
Rep Power: 5
Solved Threads: 20
Here's a rough idea of one way you can do it.
function change($current_banner)
{
$number_of_banners = 5;
if ($current_banner < $number_of_banners)
{
$current_banner++;
}
else
{
$current_banner = 0;
}
return $current_banner;
}function get_filename($current_banner)
{
select $current_banner
{
case 1:
$filename = "thebannername.jpg";
...
}
}//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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
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


Linear Mode