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
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
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
I've checked my syntax but obviously missing something.
Would anyone mind a quick scan:
// Convert Values to Variables:
$Title = $_POST[Title];
$ChristianName = $_POST[ChristianName];
$MiddleName = $_POST[MiddleName];
$Surname = $_POST[Surname];
$HomePhone = $_POST[HomePhone];
I see one problem, but not the one you are talking about.
// Convert Values to Variables:
$Title = $_POST[Title];
This (and the rest of the post fields) should have quotes:
$Title = $_POST[Title];
(php looks for a constant named Title, instead of the string Title)
What line gives you the
Jim
I deleted a whole load of lines and still get the error. I've narrowed it
down to this code:
?php
// Verify User Input:
echo brbrbr;
$requiredFields =
array('Title','ChristianName','Surname','HomePhone','Address01','City','Post
code','Country','Gender','WorkPermitRequired','MyStatus');
On Monday 19 July 2004 19:02, Harlequin wrote:
I deleted a whole load of lines and still get the error. I've narrowed it
down to this code:
Please read the syntax guide in the manual. Asking people to solve parse
errors for you is, IMHO, ludicrous.
--
Jason Wong - Gremlins Associates -
But the error (line 40) is actually the last line...! :|
You had a missing brace. When the error line is the last line (and especially
if error is Undefined $end) then you likely have a missing ending brace or
ending quote. Not trying to start a flame war here, but if you try a different
else
{
echo Hi...!;
?
You are missing a } at the end of the else. It should be:
else
{
echo Hi...!;
}
?
On Mon, 19 Jul 2004 12:02:47 +0100, Harlequin
[EMAIL PROTECTED] wrote:
Jim
I deleted a whole load of lines and still get the error. I've narrowed it
down to this code:
Hello,
Try adding the closing brace } to the last else
forEach($errors as $error)
{
echo $error . 'brbr';
}
}
else
{
echo Hi...!; --
hth
Jarratt
On Mon, 2004-07-19 at 12:02, Harlequin wrote:
Jim
I deleted a whole load of lines and still get the error. I've narrowed it
Thanks Jason.
I've started doing that - damn well have to with nested IF statements.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
Jason Barnett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
But the error
Hello, I'm getting an error that says:
Parse error, unexpected T_STRING on line 73
line 73 is: ?xml version=1.0 encoding=iso-8859-1
?
this is what I have below line 73:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0
Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
What do you have before line 73?
On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote:
Hello, I'm getting an error that says:
Parse error, unexpected T_STRING on line 73
line 73 is: ?xml version=1.0 encoding=iso-8859-1
?
this is what I have below line 73:
!DOCTYPE html PUBLIC
This is what I have before line 73:
?php require_once('Connections/connTrio.php'); ?
?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = ,
$theNotDefinedValue = )
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) :
$theValue;
switch ($theType) {
case
Hey Mike, your wild guess worked great!! :) Thanks a lot, and Craig as
well.
--- Ford, Mike [LSS] [EMAIL PROTECTED] wrote:
On 04 March 2004 20:04, Enrique Martinez wrote:
Hello, I'm getting an error that says:
Parse error, unexpected T_STRING on line 73
line 73 is:
Hello Raditha and all,
Thanks for the replies ... I reviewed all my code with Zend Studio and
the syntax was correct everywhere ... so I tried running the
application from the command line:
$ php donate.php
and it worked fine, so looking through the code we saw that there was a
short-tag in
Bruno,
This often occurs when there is no closing bracket } for a conditional
statement or a loop.
hth
Hugh
- Original Message -
From: Bruno Mattarollo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 2:51 AM
Subject: Re: [PHP] parse error, unexpected $
Parse
Hello,
I am having a strange problem with PHP and I can't really find a proper
answer, maybe someone have seen this before and can give me a hint.
I have a series of files (originally developed by another colleague)
installed on a server with PHP 4.2.2 and I get this error:
Parse error: parse
Hi Bruno,
The line number is misleading the error is generally above the line
that's reffered to. try commenting out sections of the code. If you have
an IDE it will be able to point out the error. If you don't have an IDE
some text editor that is capable of syntax highlighting will also help.
Hello,
my name is octavio, Im new to this news group,
I have a problem, Im getting the following error message:
Parse error: parse error, unexpected $end in
c:\appserv\www\octavio\user_data.php on line 63
What is this? I have looked all the source code and at the end of file there
is nothing
45 matches
Mail list logo