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

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

 



Thanks for an initial effort. Unfortunately, although I made both changes, it
did not eliminate this strange effect. For example, Acacia  acuminata and
Acacia albida do not complete their uv pages while <http://www.prowebcanada.com/taxa/displayspecies.php?&species_name=Acacia%20aneura>Acacia aneura finishes its
page just fine, picture included.

Feel welcome to try out any of these at (shortcut ....):
        http://www.prowebcanada.com/taxa/alphaspecies.php

- Pick a species name first and the link will take you to the data page
           for the chosen page. Click on the UV fluorescence button. Some
           UV photos show fine but some pages hang and don't even
           complete (strange!).

Bill


At 09:22 PM 2/27/2011, you 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



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