Re: Banner rotation with links
| From: | Kevin Murphy | Date: | Thu, 15 Feb 2007 16:32:38 +0000 |
| Subject: | Re: Banner rotation with links | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248911@lists.php.net to get a copy of this message | ||
On my home page i have all my banners in a MySQL database which includes the image path, the link, and the description as separate fields. The then do a MySQL query with a query that will look something like this:
$query = "select * FROM banner ORDER BY RAND() LIMIT 1";
Seems to work just fine.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Feb 14, 2007, at 8:29 AM, Chris Carter wrote:
>
> How can I rotate a banner as well as the link in it within a page
> using PHP.
> This can be done as a include file php. Anybody please supply some
> code or a
> link for this.
>
> Thanks in advance.
>
> Chris
> --
> View this message in context: http://www.nabble.com/Banner-rotation-
> with-links-tf3228157.html#a8968148
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>