Re: Parse Error... how to fix?
| From: | Richard Lynch | Date: | Thu, 16 Dec 2004 18:45:39 +0000 |
| Subject: | Re: Parse Error... how to fix? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204526@lists.php.net to get a copy of this message | ||
GH wrote:
> Got a problem... here is the error: Parse error: parse error,
> expecting
T_STRING' or T_VARIABLE' or
> `T_NUM_STRING' in
> /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I
> am not sure on how to fix it...
>
> line 42 is: "<TITLE> $language['program_name'] </TITLE>\n"
> .
>
> echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
> Transitional//EN\"\n"
> .
> "<TITLE> $language['program_name'] </TITLE>\n" .
#1. Get rid of the ''s around program_name. Those won't work inside of
""s.
#2. Re-read the PHP on-line manual section on strings.
#3. Just break out of PHP for anything more than two lines of HTML.
--
Like Music?
http://l-i-e.com/artists.htm