Please help a newbie with nested quotes...

From: Date: Tue, 15 Apr 2003 22:37:18 +0000
Subject: Please help a newbie with nested quotes...
Groups: php.general 
Request: Send a blank email to php-general+get-144035@lists.php.net to get a copy of this message
Please be gentle, I'm new to PHP... This works fine: <?php // GoLive Content Source $product3 = WrapMySQLDatabaseResults("multi","select * from table1 WHERE prod_id='TVR3314DC'","block=1","product3");?> This doesn't. I think the problem is nested quotes. Could someone help me please? <?php // GoLive Content Source $product3 = WrapMySQLDatabaseResults("multi","select * from table1 WHERE prod_id='echo pageParameter("product", "0")'","block=1","product3");?> I tried "escaping" the nested quotes, but that didn't seem to help. But then again, I may not have nested them correctly :) Thanks, Michael

« previous php.general (#144035) next »