Reply to Re: How to change pictures everyday using php

Your name:

Reply:


Posted by Luigi Donatello Asero on 10/10/48 11:17

"Luigi Donatello Asero" <jaggillarfotboll@telia.com> skrev i meddelandet
news:5gKme.25959$d5.176406@newsb.telia.net...
>
> "Geoff Berrow" <blthecat@ckdog.co.uk> skrev i meddelandet
> news:dqkl911lgsir9dj2hgpnbfht5lc4t83r4s@4ax.com...
> > I noticed that Message-ID: <y4ome.25856$d5.176154@newsb.telia.net> 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация