Re: How to change pictures everyday using php




"Luigi Donatello Asero" <jaggillarfotboll@xxxxxxxxx> skrev i meddelandet
news:5gKme.25959$d5.176406@xxxxxxxxxxxxxxxxxx
>
> "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 that I could
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/sv/faktaomitalien.php





.



Relevant Pages

  • Re: How to change pictures everyday using php
    ... > Luigi Donatello Asero contained the following: ... >>1) insert the photos in a database ... That might work well for 7 pictures but what about 800? ...
    (alt.php)
  • Re: Can you insert a graphic offsite?
    ... >> the original images have been uploaded and come from. ... you do not know how many see the small pictures without visiting your ... Luigi Donatello Asero ... Prev by Date: ...
    (alt.html)
  • Re: Check keyword density for URL with https
    ... >> It is hopeless, I told ya:) ... There are probably different opinion about the quality of these pictures. ... Luigi Donatello Asero ...
    (alt.internet.search-engines)
  • Re: Can you insert a graphic offsite?
    ... It doesn't cost me bandwidth, ... > pictures, ... Luigi Donatello Asero ... Prev by Date: ...
    (alt.html)
  • Re: Access newbie picture question
    ... While the DBPix control is an excellent reccomendation your statement ... LoadSaveJpeg.zip contains a database demonstrating how to use the Intel ... >>> I have to store some pictures in the database. ... is there a way to display the FileOpen ...
    (microsoft.public.access.forms)