php-windows Digest 28 Feb 2011 10:27:58 -0000 Issue 3917
Topics (messages 30508 through 30511):
Re: Same code but some photos won't show.
30508 by: Niel Archer
30509 by: Bill Mudry
30510 by: Ferenc Kovacs
30511 by: Richard Quadling
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
> 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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Mon, Feb 28, 2011 at 3:22 AM, Niel Archer <n...@chance.now> 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
--- End Message ---
--- Begin Message ---
On 28 February 2011 02:22, Niel Archer <n...@chance.now> wrote:
>>
>> $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
Neil,
<?php
$string = "This is line 1.
This is line 2.
This is line 3.";
echo $string;
?>
outputs ...
This is line 1.
This is line 2.
This is line 3.
There is no magic here. The string contains newlines and are carried
through to the output as expected.
Richard.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---