You are here: Re: How to change pictures everyday using php « All PHP « IT news, forums, messages
Re: How to change pictures everyday using php

Posted by nemo on 10/10/52 11:17

>> You still haven't said how many pictures would be involved! You hint at
>> 800, but in the form of a rhetorical question.
>> So... how many pictures in total?
>> 1?
>> 7?
>> 365?
>> 800?
>> How many?
>
>
>I have about 800 pictures on the website. They will be probably more in the
>future.
>I would like to show 2 pictures on the home page and every day I would like
>to show different pictures.
>That means that I would show 365*2= 730 during one year on the homepage.
>The year after I would show other 70 photos and after that I shall have
>probably got more pictures anyway, which I could add to the database.
>All that only for the homepage.
So... you want to show 2 unique pictures on each day, each picture with its
own unique alt text.

>> >Is there any way to let robots save the "alt text" in the pictures even
>if
>> >they were changed automatically everyday?
>> "save" - what do you mean by "save"? Save it to do what with it?
>> >Where should I write the "alt text" if I used the kind of code which you
>> >suggested?
>> >Which were the advantages/disadvantages to use/not to use a database?
>>
>> Do you have access to a RDMS?
>> Yes or no?
>
>
>I have access to Mysql.
>Is that RDMS? I do not know what you mean by RDMS.
Ah.... Relational Database Management System - MySQL will do just fine.
>
>> Do you want to use a different piece of alt text with every picture?
>> Yes or no?.
>
>Yes, I want to use a different piece of alt text with every picture.
Then you will have to make a field in your MySQL database for it and input
that as you input the path to the picture (no, not "the picture", the "path
to the picture", don't try storing pictures in databases).

I expect that I would put together a kludge of every picture having an
auto-increment id number, on day 1 showing 2 successive pictures with id
number N and N+1, filing a value for the next N each time.
There will be people in this group who will provide a far more elegant
solution than the above, but as you will be increasing the number of
pictures, the whole thing needs to be dynamic, and also cater for your
deleting any pictures, already shown or yet to be shown.
I'll be interested to see the others' suggestions.

(By the way, Luigi - don't worry too much; I can't speak *your* native
language with ANY degree of fluency.)

 

Navigation:

[Reply to this 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

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