Re: Please help a newbie with nested quotes...
| From: | him boy | Date: | Wed, 16 Apr 2003 13:37:18 +0000 |
| Subject: | Re: Please help a newbie with nested quotes... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144114@lists.php.net to get a copy of this message | ||
Tom,
Thank you very much, that worked great! (now I get to keep my job...)
Later,
Michael Sorbera
87 944 Turbo driver, for a while longer...
soon to be a Cayenne S driver...
aka San Antonio Silver Bullet
"Tom Rogers" <trogers@kwikin.com> wrote in message
news:1708130316.20030416094027@kwikin.com...
> Hi,
>
> Wednesday, April 16, 2003, 8:37:18 AM, you wrote:
> hb> Please be gentle, I'm new to PHP...
>
> hb> This works fine:
>
> hb> <?php // GoLive Content Source $product3 =
> hb> WrapMySQLDatabaseResults("multi","select * from table1 WHERE
> hb> prod_id='TVR3314DC'","block=1","product3");?>
>
> hb> This doesn't. I think the problem is nested quotes. Could someone
help me
> hb> please?
>
> hb> <?php // GoLive Content Source $product3 =
> hb> WrapMySQLDatabaseResults("multi","select * from table1 WHERE
prod_id='echo
> hb> pageParameter("product",
> hb> "0")'","block=1","product3");?>
>
>
>
> hb> I tried "escaping" the nested quotes, but that didn't seem to help.
But
> hb> then again, I may not have nested them correctly :)
>
> hb> Thanks,
> hb> Michael
>
> You don't need the echo and you can use the . to join stuff if you have
quote troubles
>
>
> WrapMySQLDatabaseResults("multi","select * from table1 WHERE
prod_id='".pageParameter("product",
"0")."'","block=1","product3");?>
>
> --
> regards,
> Tom
>