Re: Problems outputting to a 3 column table in order to crate an image gallery
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Problems outputting to a 3 column table in order to crate an image gallery

From: ste <0@0.com>
Date: Sun Apr 30 2006 - 03:40:19 CEST

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:e3134t$3bg$1@netlx020.civ.utwente.nl...
> ste wrote:
>>> echo "\n\t\t<td><img src=\".$row['imagelocation']." /></td>";
>> When I first ran it, I had a message saying "Parse error: parse error,
>> unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
>> T_VARIABLE or T_NUM_STRING" on the line containing the code
>> 'imagelocation' above.
>
>
> It should offcourse be:
> echo "\n\t\t<td><img src=\"".$row['imagelocation']."\" /></td>";
>
> --
> Rik Wasmus

Thanks Rik, I've now updated it.

Now when I open this page: mywebsite.com/gallery.php?imagetype=landscape
it opens all the images from my database which are tagged with the category
of landscape.

Likewise, going to the url: mywebsite.com/gallery.php?imagetype=portrait
it opens all the images from my database which are tagged with the category
of portrait.

Is there a way to open the gallery showing ALL pictures, without having to
re-write the sql query? i.e. is there a tag I can enter in a URL which
displays images where the imagetype could literally be anything?
mywebsite.com/gallery.php?imagetype=anything

If there is such a term, I haven't been able to find it, but thought I'd ask
anyway in case you knew otherwise.

Thanks,

Ste
Received on Mon May 1 03:07:41 2006