php-windows Digest 1 Mar 2011 10:26:06 -0000 Issue 3918

Topics (messages 30512 through 30514):

Re: Same code but some photos won't show.
        30512 by: Niel Archer
        30513 by: Tommy Pham

Error while inserting data into mysql
        30514 by: nagendra prasad

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 ---
> 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.

Sorry my mistake. I was tired and thinking it needed HEREDOC ;-)

> -- 
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
Niel Archer



--- End Message ---
--- Begin Message ---
On Sun, Feb 27, 2011 at 1:03 PM, Bill Mudry <billmu...@rogers.com> 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.
>
> In fact, most pages form fine right to the last item at the bottom of the
> page ---- but most of the ones that do not form mysteriously hang up
> well before the part where the picture should form. For the
> fluorescence page for Acacia albida, for instance the output shows no
> picture but only:
> ...................................................................................................


<snip>

For the pictures that doesn't show, did you look at the HTML source to
see if the URL of the image is valid, ie. the image actually exists in
the said path & file name?  Also, some browsers don't interpret blank
space in the URL well.  You'll have urlencode [1] it.

Regards,
Tommy

[1] http://php.net/urlencode

--- End Message ---
--- Begin Message ---
Hi All,

I have 2 simple php pages. One with the form just like some sales voucher.
Another is to print in a proper format and to insert the form database into
mysql. When I enter some data in the sales voucher everything is going well,
however when it comes to the second php for inserting data into mysql I am
getting an error like "Error: Unknown column 'scloth100_qty' in 'field
list'". I have checked everything but not sure about the error. Please help
me with it.

Best,
Guru.

--- End Message ---

Reply via email to