|
Posted by nemo on 10/10/09 11:17
On Tue, 31 May 2005 08:41:47 +0100, Geoff Berrow <blthecat@ckdog.co.uk>
wrote:
>I noticed that Message-ID: <482o91dsednsp9s89371earj09873c63fn@4ax.com>
>from nemo contained the following:
>
>>If you want to use the same piece of alt text, no matter which picture you
>>are displaying, don't save any alt text with the pictures, just choose what
>>you want as alt text and insert it as a constant into the script when
>>pulling the picture's details from the database
>
>It would be better to use alt="" in that case.
No, it wouldn't. alt="" would produce exactly that when the cursor is over
the picture "", blank, zero, zilch, nothing, notta sozzidge. There is no
point in storing nothing in a database, and even less in storing the same
thing for each record.
$alt="alt=\" This is my standard text.\" ";
$Query="select piccy from piccy_table where etc";
while ($Row=mysql_fetch_array ($Result))
{
$piccy=$Row[piccy_filename];
$piccy=$piccy.$alt;
)
Navigation:
[Reply to this message]
|