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

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

 



> 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



Fix those and see what happens ;-)

--
Niel Archer



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

  Powered by Linux