Re: Same code but some photos won't show.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 28, 2011 at 3:22 AM, Niel Archer <not@xxxxxxxxxx> wrote:

> > I finally got code going to show off UV fluorescent (wood) photos.
> > All pages are dynamically formed with PHP and MySQL. Most photos show
> > but, strangely ---  some do not, even though it is the same code that
> > is forming each page according to what a user picks as the species to
> view.
>
> <snip>
>
> >
> ...................................................................................................
> >
> ///////////////////////////////////////////////////////////////////////////////////////////////////////
> > //
> > SECTION TO DISPLAY WOOD SCANS
> >
> /////////////////////////////////////////////////////////////////////////////////////////////////////
> >
> >          Echo "<div align = 'center'>";
> >
> >          Echo "<H2 align=\'center\'>Ultraviolet Fluorescence Photo of
> >          {$_SESSION["speciesname"]}</H2>";
>
> 'center' shouldn't have the single quotes escaped.
>
>
> >
> >          $uvquery = "
> >          SELECT u.uv_filename
> >          FROM uvphotos u
> >          JOIN species s
> >          ON u.species_name=s.species_name
> >          WHERE u.species_name = '$speciesname'";
>
> You can't split a normal string over multiple lines like this
>
>
AFAIK, yes you can.

Tyrael

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux