Re: Parse Error... how to fix?

From: Date: Thu, 16 Dec 2004 19:17:40 +0000
Subject: Re: Parse Error... how to fix?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-204530@lists.php.net to get a copy of this message
GH wrote:
However, I can not get any results into the <title> tags.... all three options are not displaying....
$language is in global scope, you need: function printHeader(){ global $language; More: http://sk2.php.net/manual/en/language.variables.scope.php
On Thu, 16 Dec 2004 13:03:57 -0500, GH <garyhotko@gmail.com> wrote:
Ok... thank you. On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer <lists@kilimajer.net> wrote:
GH wrote:
Hi All... 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" .
either one: 1. "<TITLE> $language[program_name] </TITLE>\n" . 2. "<TITLE> {$language['program_name']} </TITLE>\n" . 3. "<TITLE> ". $language['program_name'] ." </TITLE>\n" .


« previous php.general (#204530) next »