Good morning Everyone,
I'm have trouble with a simple HTML Checkbox list. I keep getting *Parse
error*: syntax error, unexpected ''. I'm sure I'm doing something really
simple and basic wrong I just cannot seem to see what it is, any assistance
is appreciated.
Script:
form method=post
]
Sent: Friday, May 04, 2007 9:43 PM
To: Brad Sumrall
Subject: Re: [PHP] parse error
}else{
Brad Sumrall wrote:
Hi folk, I am writing a login in script and get the following:
Parse error: parse error, unexpected T_ELSE in
/home/content/c/u/t/cuteirka/html/commonlogin_new.php on line 37
I am
, 2007 9:43 PM
To: Brad Sumrall
Subject: Re: [PHP] parse error
}else{
Brad Sumrall wrote:
Hi folk, I am writing a login in script and get the following:
Parse error: parse error, unexpected T_ELSE in
/home/content/c/u/t/cuteirka/html/commonlogin_new.php on line 37
I am basically pulling
Maybe not
The following passes me on without error, but does not actually log me on?
Put in a fake name, and it still passes me on to the index page.
I took this straight off the phpbb help files?
Brad
?php
if(!isset($_SESSION[userid]))
{
?
form action=/phpbb/index.php
$SESSION = get_include_contents'/phpbb/login.php';
I pulled this tright out of the text book.
I am trying to pull a phpbb session on an outside page.
Any suggestions?
Here is the error!
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
On Apr 28, 2007, at 9:08 PM, Brad Sumrall wrote:
$SESSION = get_include_contents'/phpbb/login.php';
I pulled this tright out of the text book.
I am trying to pull a phpbb session on an outside page.
Any suggestions?
Here is the error!
Parse error: parse error, unexpected
Hi everyone, i am new to PHP, but not a programmer..,
i got this php code to workout on something on my blog, but it seems that it
gives me the following error:
Parse error: syntax error, unexpected ';' in
/hxxx/x/domains/x.com/public_html/blog/labels.php on line 15
ul class=labels
Em Sexta 30 Março 2007 18:55, Ian escreveu:
Parse error: syntax error, unexpected ';' in
/hxxx/x/domains/x.com/public_html/blog/labels.php on line 15
ul class=labels
?php
1 define('PREFIX', 'http://.x.com/labels');
2
On 3/30/07, Ian [EMAIL PROTECTED] wrote:
Hi everyone, i am new to PHP, but not a programmer..,
i got this php code to workout on something on my blog, but it seems that it
gives me the following error:
Parse error: syntax error, unexpected ';' in
Hehe.., didn't i told i am poor in this, actually, never learn PHP before..
:)
No more such errors anymore thank you Tijnema! =)
Ian
Tijnema ! [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 3/30/07, Ian [EMAIL PROTECTED] wrote:
Hi everyone, i am new to PHP, but not a
Thanks very much for the help, Davi,, no more such errors.. :)
Ian
Davi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Em Sexta 30 Março 2007 18:55, Ian escreveu:
Parse error: syntax error, unexpected ';' in
/hxxx/x/domains/x.com/public_html/blog/labels.php on line 15
ul
Greetings All,
Please have a look at the following code:
if ($numrows 1)
// the member does not exist
{
include ($adminfolderpath./include/headeradmin.php);
echo pThat email does not exist in the members list./p;
echo pa href='login.php'Please login/a./p;
include
Schalk wrote:
Greetings All,
Please have a look at the following code:
your missing a closing brace some where - by the looks of things
not in the code you sent.
if ($numrows 1)
// the member does not exist
{
include ($adminfolderpath./include/headeradmin.php);
echo pThat email
Thanks everyone.
Jochem Maas wrote:
Schalk wrote:
Greetings All,
Please have a look at the following code:
your missing a closing brace some where - by the looks of things
not in the code you sent.
if ($numrows 1)
// the member does not exist
{
include
At 08:11 AM 7/10/2006, Schalk wrote:
I am getting the following error:* Parse error*: parse error,
unexpected $ in
*/home/httpd/vhosts/demo.bdiverse.com/httpdocs/accessible/processlogin.php*
on line *69
In my code the last line i.e. ? is marked as line 69
I don't see anything wrong with
Hi All,
can anone see what's wrong with the below code? I get this error,
*Parse error*: syntax error, unexpected '}' in
*/usr/local/apache2/htdocs/moviedata2.php* on line *18
*
$age=1;
while($age=100) {
$insert = INSERT INTO age (age_label) VALUES ($age);
$results = mysql_query($insert) or
Quoting Mark Sargent [EMAIL PROTECTED]:
Hi All,
can anone see what's wrong with the below code? I get this error,
*Parse error*: syntax error, unexpected '}' in
*/usr/local/apache2/htdocs/moviedata2.php* on line *18
*
$age=1;
while($age=100) {
$insert = INSERT INTO age (age_label) VALUES
how about like this
---
$insert = INSERT INTO age (age_label) VALUES ('$age');
---
From: Mark Sargent [mailto:[EMAIL PROTECTED]
Sent: Sat 03-Jun-2006 10:02
To: PHP List
Subject: [PHP] Parse error: syntax error, unexpected '}'
Hi All,
can anone see what's
Hi All,
sorry, found it. Forgot the ; after $age++. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bagus Nugroho would like to recall the message, [PHP] Parse error: syntax
error, unexpected '}'.
Hi All,
I get the error for line 15 for this code,
?php
15 echo font face='$_SESSION['font']';
16 echo size='$_SESSION['size']';
17 echo color='$_SESSION['colour']';
18 echo $_SESSION['text'];
19 echo /font;
20 ?
I have put ' ' quotes around the quotes for each font
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
?php
15 echo font face='$_SESSION['font']';
16 echo size='$_SESSION['size']';
17 echo color='$_SESSION['colour']';
18 echo $_SESSION['text'];
19 echo /font;
20 ?
I have put ' ' quotes around
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
?php
15 echo font face='$_SESSION['font']';
16 echo size='$_SESSION['size']';
17 echo color='$_SESSION['colour']';
18 echo $_SESSION['text'];
19 echo /font;
20 ?
I have put ' ' quotes around the
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there is a value in $flavour
Mark Sargent wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there
On 24/05/06, Mark Sargent [EMAIL PROTECTED] wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these
Mark Sargent wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these lines will execute as long as there
Chris wrote:
Since there aren't actually 18 lines this isn't the real code..
true, as I only posted the php code
The problem is here:
echo $currentValue br\n;
it should be
echo $currentValue . br\n;
or
echo $currentValue , br\n;
thanx to all. The book is Beginning PHP, Apache, MySQL,
-Original Message-
From: Joe Henry [mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 20:53
To: php-general@lists.php.net; [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error on SQL Insert
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = INSERT INTO cars (model, `year`, details
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in
Tom Chubb wrote:
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or
why do you have single quotes around year?
-B
Tom Chubb wrote:
I'm working on an insert record page with a multiple file upload script of
which I understand the fundamentals.
However, on submission I am getting the following error:
Parse error: syntax error, unexpected
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = INSERT INTO cars (model, `year`, details, price, image1,
Not sure if this is your problem, but those look like backticks around year
instead of single quotes. Should there even be quotes there?
HTH
--
Joe Henry
Complete code...
?php require_once('../Connections/damotors.php'); ?
?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = ,
$theNotDefinedValue = )
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case text:
On Friday 07 April 2006 12:53, Joe Henry wrote:
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = INSERT INTO cars (model, `year`, details, price, image1,
Not sure if this is your problem, but those look like backticks around year
instead of single quotes. Should there even be
://chrome.me.uk
-Original Message-
From: Joe Henry [mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 20:53
To: php-general@lists.php.net; [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error on SQL Insert
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = INSERT INTO cars (model, `year
thanks for the clarification, I guess the other solution would be to
avoid using names with special meaning for column names...
-B
Ray Hauge wrote:
On Friday 07 April 2006 12:53, Joe Henry wrote:
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote:
$insertSQL = INSERT INTO cars (model,
Tom Chubb wrote:
Complete code...
snip
$insertSQL = INSERT INTO cars (model, `year`, details, price, image1,
image2, image3, forsale) VALUES ($_POST['model'], $_POST['year'],
$_POST['details'], $_POST['price'], $_FILE['image']['name'][0],
$_FILE['image']['name'][1],
On Friday 07 April 2006 12:56, Chrome wrote:
Of course if the field in the DB isn't numeric this would be
'{$_POST['model']}'
Dan
That's what I was thinking. Even if data is a number, I still generally put
quotes around it to make sure I don't have an issue.
--
Ray Hauge
PROTECTED]
To: 'Joe Henry' [EMAIL PROTECTED]; php-general@lists.php.net;
[EMAIL PROTECTED]
Sent: Friday, April 07, 2006 9:56 PM
Subject: RE: [PHP] Parse Error on SQL Insert
Backticks (`) encapsulate table or database names
I was thinking maybe if the array references were encapsulated in curly
['model']}'
Dan
---
http://chrome.me.uk
-Original Message-
From: Joe Henry [mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 20:53
To: php-general@lists.php.net; [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error on SQL Insert
On Friday 07 April 2006 1:37 pm, Tom Chubb
Hi all,
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code:
html
headtitleTest MySQL/title/head
body
!-- mysql_up.php --
?php
[snip]
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code:
html
headtitleTest MySQL/title/head
body
!-- mysql_up.php --
?php
On Tuesday 21 February 2006 14:27, Ray Cantwell wrote:
Hi all,
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code:
html
This one time, at band camp, Ray Cantwell [EMAIL PROTECTED] wrote:
?php
$host=localhost
$user=ray
$password=*
these need to be terminated with ;
$host = 'localhost';
etc
etc
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
Hi,
you need to finish every line with ;
$host=localhost ;
$user=ray ;
$password=* ;
Bye
Ray Cantwell wrote:
Hi all,
I am a noob and super confused right now. I have some really simple
code and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
Jay Blanchard wrote:
[snip]
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code:
html
headtitleTest MySQL/title/head
body
!--
Ray Cantwell wrote:
Hi all,
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code:
html
headtitleTest MySQL/title/head
body
!--
- Original Message -
From: Ray Cantwell [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, February 21, 2006 1:27 PM
Subject: [PHP] Parse Error
Hi all,
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse
@lists.php.net
Subject: Re: [PHP] Parse Error
Ray Cantwell wrote:
Hi all,
I am a noob and super confused right now. I have some really simple code
and i am getting an error that reads:
*Parse error*: syntax error, unexpected T_VARIABLE in
*/var/www/mysql_up.php* on line
here is the code
Hi All,
again, I'm following an example from webmonkey,
http://webmonkey.wired.com/webmonkey/99/21/index3a_page2.html?tw=programming
and I'm changing only what's relevant to me. I haven't altered the code
basics, though. But I get the error regarding else. I don't see what
it is. Anyone..?
Sent: Tue, 26 Apr 2005 16:01:24 +0900
Subject: [PHP] Parse error: parse error, unexpected T_ELSE
Hi All,
again, I'm following an example from webmonkey,
http://webmonkey.wired.com/webmonkey/99/21/index3a_page2.html?tw=programming
and I'm changing only what's relevant to me. I haven't
]
To: php-general@lists.php.net
Sent: Tue, 26 Apr 2005 16:01:24 +0900
Subject: [PHP] Parse error: parse error, unexpected T_ELSE
Hi All,
again, I'm following an example from webmonkey,
http://webmonkey.wired.com/webmonkey/99/21/index3a_page2.html?tw=programming
and I'm changing only what's relevant
-- Original Message ---
From: Mark Sargent [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tue, 26 Apr 2005 16:01:24 +0900
Subject: [PHP] Parse error: parse error, unexpected T_ELSE
Hi All,
again, I'm following an example from webmonkey,
http://webmonkey.wired.com/webmonkey/99/21
Dasmeet Singh wrote:
...
Get some decent editor with syntax highlighting
ditto. :-)
Thanks.. That was really silly..
BTW.. pls suggest some good editor.. I use notepad currently..
OFFS.
http://www.php-editors.com/
http://www.google.com/search?hl=enlr=q=good+editor+for+phpbtnG=Search
choose one.
--
On 4/20/05, Jochem Maas [EMAIL PROTECTED] wrote:
Dasmeet Singh wrote:
BTW.. pls suggest some good editor.. I use notepad currently..
http://www.php-editors.com/
http://www.google.com/search?hl=enlr=q=good+editor+for+phpbtnG=Search
choose one.
This can take a long time, I know. My
Hi!
When i try to run the following line:
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
/home/real/public_html/functions.php on line 162
Any idea..why? Probably
Dasmeet Singh wrote:
Hi!
When i try to run the following line:
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
The above line is fine. Check the lines above.
it gives an error..
Parse error: parse error, unexpected T_CLASS in
[snip]
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
/home/real/public_html/functions.php on line 162
Any idea..why? Probably any stupid mistake .. :(
[/snip]
Jay Blanchard wrote:
[snip]
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
/home/real/public_html/functions.php on line 162
Any idea..why? Probably any stupid
Dasmeet Singh wrote:
Jay Blanchard wrote:
[snip]
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
/home/real/public_html/functions.php on line 162
Any
Marek Kilimajer wrote:
Dasmeet Singh wrote:
Jay Blanchard wrote:
[snip]
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
Dasmeet Singh wrote:
Jay Blanchard wrote:
[snip]
echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br
Property Type- $ptypebrMin Price- $row[9] /div);
it gives an error..
Parse error: parse error, unexpected T_CLASS in
/home/real/public_html/functions.php on line 162
Any
Hi,
I'm beginning to learn PHP/MySQL, i have problem 'parse error' when using
'mysql_query' although it was simple code, like this :
=
1 ?php
2 $host = localhost;
3 $user = root;
4 $pass = alpha;
5 $konek = mysql_connect($host,$user,$pass);
6 if (!$konek) {
7 die
Add a ; to the end of line 16.
On Sun, 17 Apr 2005, Bagus Nugroho wrote:
Hi,
I'm beginning to learn PHP/MySQL, i have problem 'parse error' when
using 'mysql_query' although it was simple code, like this :
=
1 ?php
2 $host = localhost;
3 $user = root;
4 $pass = alpha;
5 $konek =
Ok, well the mystery is solved. Earlier in the script, I had used
HEREDOC string delimiting to output some html blocks (I feel,
asthetically, that HEREDOC is more readable than escaping out to HTML
then back into PHP). Somehow, and I'm not sure how, because I don't
remember typing the spaces,
Hello,
I've made the source available at:
http://www.weldingconsultants.com/wcapp/admin.phps
Chris W. Parker wrote:
print 'tdinput type=\'checkbox\' name=\'status[' .
$row[profileID] . ']' . ' value='true'//td\n;
Very likely the problem is not on line 82, but rather before it. Line 82
is just
Jeff Schmidt wrote:
Hello,
I've made the source available at:
http://www.weldingconsultants.com/wcapp/admin.phps
404 error when I just tried.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM |
Hello,
Sorry about that. I took the source down after I solved the problem.
The problem was a nasty type of syntax error caused by PHP
implementation of HEREDOC string delimiting.
I was using HEREDOC to stuff multiple lines of HTML into a string, in
several places in my file, which is all
Hello,
I'm beating my head, and can't figure out *WHY* PHP is giving me this
error. The full error text is:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php
Jeff Schmidt mailto:[EMAIL PROTECTED]
on Monday, March 14, 2005 2:58 PM said:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on
line 82
Line 82 is:
Chris W. Parker
on Monday, March 14, 2005 3:15 PM said:
Line 82 is:
print 'tdinput type=\'checkbox\' name=\'status[' .
$row[profileID] . ']' . ' value='true'//td\n;
Very likely the problem is not on line 82, but rather before it. Line
82 is just where the PHP parser finally gets
Chris W. Parker wrote:
Chris W. Parker
on Monday, March 14, 2005 3:15 PM said:
Line 82 is:
print 'tdinput type=\'checkbox\' name=\'status[' .
$row[profileID] . ']' . ' value='true'//td\n;
Very likely the problem is not on line 82, but rather before it. Line
82 is just where the PHP parser
Chris W. Parker wrote:
Chris W. Parker
on Monday, March 14, 2005 3:15 PM said:
Line 82 is:
print 'tdinput type=\'checkbox\' name=\'status[' .
$row[profileID] . ']' . ' value='true'//td\n;
Very likely the problem is not on line 82, but rather before it. Line
82 is just where the PHP
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote:
Chris W. Parker
on Monday, March 14, 2005 3:15 PM said:
Line 82 is:
print 'tdinput type=\'checkbox\' name=\'status[' .
^^ should be a slash??
Jason Barnett mailto:[EMAIL PROTECTED]
on Monday, March 14, 2005 3:57 PM said:
Chris W. Parker wrote:
Chris W. Parker
on Monday, March 14, 2005 3:15 PM said:
Line 82 is:
print 'tdinput type=\'checkbox\' name=\'status[' .
$row[profileID] . ']' . ' value='true'//td\n;
Very
Why not make it simple?:
// end PHP code ?
tdinput type='checkbox' name='status[? echo $row['profileID']; ?]'
value='true'/td
? // continue PHP code
Dan T
On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote:
Hello,
I'm beating my head, and can't figure out *WHY* PHP is giving me
this error. The
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 16 December 2004 17:39, 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
I will try this when i get back to my other computer where development
takes place the script format was originally started by an IDE
that I am starting to add my code to ... so I will look at.
On Thu, 16 Dec 2004 18:19:43 -, Ford, Mike [EMAIL PROTECTED] wrote:
To view the terms under
line 42 is: TITLE $language['program_name'] /TITLE\n .
Try:
'TITLE'.$language['program_name'].'/TITLE'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 .
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']
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
Kilimajer [EMAIL PROTECTED]
CC: php-general [EMAIL PROTECTED]
Subject: Re: [PHP] Parse Error... how to fix?
However, I can not get any results into the title tags all three
options are not displaying
On Thu, 16 Dec 2004 13:03:57 -0500, GH [EMAIL PROTECTED] wrote:
Ok... thank
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
GH mailto:[EMAIL PROTECTED]
on Thursday, December 16, 2004 10:10 AM said:
However, I can not get any results into the title tags all three
options are not displaying
try:
?php
echo pre;
print_r($language['program_name']);
echo /pre;
?
If you don't see anything then
Richard Lynch mailto:[EMAIL PROTECTED]
on Thursday, December 16, 2004 10:46 AM said:
TITLE $language['program_name'] /TITLE\n .
#1. Get rid of the ''s around program_name. Those won't work inside
of s.
echo title{$language['program_name']}/title\n;
Ok... thank you.
On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer [EMAIL PROTECTED] 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
However, I can not get any results into the title tags all three
options are not displaying
On Thu, 16 Dec 2004 13:03:57 -0500, GH [EMAIL PROTECTED] wrote:
Ok... thank you.
On Thu, 16 Dec 2004 19:02:37 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote:
GH wrote:
Hi All...
Got
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 .
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
The HTML page:
http://rsossam-lap.ces.ncsu.edu/leadership/registration2.php
The processing Script
SNIP
?php
$fname= $_POST[fname];
$lname= $_POST[lname];
$addie= $_POST[addie];
you forgot the ' in the
$fname= $_POST[fname];
$lname= $_POST[lname];
$addie= $_POST[addie];
$city= $_POST[city];
fields!!!
error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
The HTML page:
Robert Sossomon wrote:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
snip
$0405distoffice= $_POST['04_05_dist_office']; //line29
$0506distoffice= $_POST['05_06_dist_office'];
snip
Look in the manual, that's your first stop...
Robert Sossomon wrote:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
[snip]
$0405distoffice= $_POST['04_05_dist_office']; //line29
$0506distoffice= $_POST['05_06_dist_office'];
Variable names cannot start with a number.
--
Variable names cannot start with a digit.
$distoffice0405 is kosher.
$0405distoffice is not.
Robert Sossomon wrote:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
The HTML page:
On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon
[EMAIL PROTECTED] wrote:
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
c:\fourh\leadership\registration_post.php on line 29
for ($i=0; $i count($choices); $i++)
This is bad. Every time the for() loop iterates, the count()
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 06 December 2004 17:23, Greg Donald wrote:
On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon
[EMAIL PROTECTED] wrote:
Parse error: parse error, expecting `T_VARIABLE' or
Richard Lynch is quoted as saying on 12/1/2004 2:57 PM:
Robert Sossomon wrote:
Parse error: parse error, expecting `']'' in file.php
SNIP
Unfortunately?? I knew exactly where the code was breaking (the lines I posted)
since before I added those lines of code the script worked without any
Hello Robert,
Thursday, December 2, 2004, 1:21:33 PM, you wrote:
RS Unfortunately?? I knew exactly where the code was breaking (the
RS lines I posted) since before I added those lines of code the
RS script worked without any problems. But what I don't understand is
RS why sometimes
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 01 December 2004 19:29, Matthew Sims wrote:
So when using arrays with string keys within strings you need to
concatenate it.
$var = I live in the city of .
1 - 100 of 366 matches
Mail list logo