Re: little problem with ' " and stuff
| From: | Ernest E Vogelsinger | Date: | Mon, 10 Feb 2003 08:52:41 +0000 |
| Subject: | Re: little problem with ' " and stuff | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135023@lists.php.net to get a copy of this message | ||
At 09:46 10.02.2003, Chris Hayes said:
--------------------[snip]--------------------
>At 09:27 10-2-2003, you wrote:
>>hi there,
>>
>>i'm having a small problem, wondering if anybody can help
>>
>>// a line in my script defining $url
>> $url = $directory . '/main.php?id=' . $id;
>>
>>// a line later on in the frameset calling this $url
>> echo '<frame name="main" scrolling="no"
>> src="'$url'">';
>>
>>this gives me a paring error on the last line
>
>please get yourself a strong pot of coffee and spend some time reading the
>manual, in this case
>http://www.php.net/manual/en/language.types.string.php
--------------------[snip]--------------------
To shorten up the process, you're missing the string concatenizer:
echo '<frame name="main" scrolling="no" src="' . $url .
'">';
or
echo '<frame name="main" scrolling="no" src="', $url,
'">';
This doesn't mean you shouldn't read the manual, though *twinkle*
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/