Re: Please help a newbie with nested quotes...

From: Date: Tue, 15 Apr 2003 23:40:27 +0000
Subject: Re: Please help a newbie with nested quotes...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144039@lists.php.net to get a copy of this message
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 hb> 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

« previous php.general (#144039) next »