Re: How to change pictures everyday using php



I noticed that Message-ID: <y4ome.25856$d5.176154@xxxxxxxxxxxxxxx> from
Luigi Donatello Asero contained the following:

>I am wondering how I could let change pictures on a page automatically
>everyday.
>May-be I could
>1) insert the photos in a database
>2) call the photo from the database to the page with an if-clause which
>depends on the date?

$pics=array("Mon"=>"pic1.jpg, "Tue"=>"pic2.jpg", ... );
$alt=array("Mon"=>"alt text for Mon, "Tue"=>"alt text for Tue" ... );
$day=date("D");

print "<img src='".$pics[$day]."' alt='".$alt[$day]."' >";


If you use a database, simply use that as a source to create the arrays.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
.



Relevant Pages

  • Re: Simple replication situation/question
    ... When I was first faced with email this 36M database, ... > - store a global variable that designates a root folder for your ... >>Yes, there are photos, but no, they are not stored in the database. ...
    (microsoft.public.access.replication)
  • Re: Simple replication situation/question
    ... I did an X-ref listing of the database objects using Rick Fisher's "Find ... There is still a problem in my Reports 'module'. ... I haven't done the splitting yet; I wanted to get the junk out first. ... >>Yes, there are photos, but no, they are not stored in the database. ...
    (microsoft.public.access.replication)
  • Re: Simple replication situation/question
    ... Yes, there are photos, but no, they are not stored in the database. ... > computer identically and creating identical folder structures on each ... To do any kind of replication other than within a LAN, ...
    (microsoft.public.access.replication)
  • Re: Simple replication situation/question
    ... >Yes, there are photos, but no, they are not stored in the database. ... >> computer identically and creating identical folder structures on each ... Does splitting create two MDB's from one? ...
    (microsoft.public.access.replication)
  • How to change pictures everyday using php
    ... I am wondering how I could let change pictures on a page automatically ... insert the photos in a database ... Prev by Date: ...
    (alt.php)