Re: How to change pictures everyday using php




"Geoff Berrow" <blthecat@xxxxxxxxxxx> skrev i meddelandet
news:dqkl911lgsir9dj2hgpnbfht5lc4t83r4s@xxxxxxxxxx
> 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.
> --


Do you imply that I would not necessarily need a database and just write the
file extension and the path of each picture?
That might work well for 7 pictures but what about 800?



--
Luigi ( un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/it/svezia.html



.



Relevant Pages

  • RE: Photo Association
    ... You are asking that the visitors be able to display your images on their ... > I am currently developing a website that is driven by a database. ... > database will be used to access a large number of pictures. ... How do I associate the photos in the database? ...
    (microsoft.public.frontpage.client)
  • How to set up a high school reunion webpage?
    ... Page for photos with ability to ID people in the ... form where folks could id the pictures based on the ... Look into the Database wizards that Front Page provides ...
    (microsoft.public.frontpage.client)
  • Re: How to change pictures everyday using php
    ... Make that math ... Luigi Donatello Asero wrote: ... > 1) insert the photos in a database ...
    (alt.php)
  • Re: How to change pictures everyday using php
    ... >> Luigi Donatello Asero contained the following: ... >>>I am wondering how I could let change pictures on a page automatically ... >> If you use a database, simply use that as a source to create the arrays. ... That might work well for 7 pictures but what about 800? ...
    (alt.php)
  • Re: displaying pictures
    ... The database has around 1000 student entries. ... incorporate the photos of the students and when i select the student id, ... It is allowing me only about 75 pictures. ...
    (microsoft.public.excel.worksheet.functions)