Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote:
> I created a webpage with the code listed, and a screen shot of the email I
> am currently receiving (with nonsense entered into my inputs)
> 
> URL:
> http://lpacmarketing.hostzi.com/admin/help.html
> 
> Anyone that can provide help will be rewarded in their next life. That's a
> promise.

um, your hosting doesn't like that for some reason.

Click it and see what you get.

> 
> Thanks!
> 
> On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan
> wrote:
> 
>>  On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
>>> Allen McCabe wrote:
 *Parse error*: syntax error, unexpected $end in *
 /home/a9066165/public_html/admin/processccu.php* on line *231*

>>> I have learned from a number of similar mistakes that this error message
>>> /normally/ means that I have a miss-matched number of brackets on a
>>> foreach, while, or if, etc... statement.
>>>
>>> Usually the line number will represent the last line in your script.  In
>>> this case, they don't seem to match...
>>>
>>> Jim
>>>
 I did some major code rewriting about halfway through (lines 114-132),
>> and
 suddenly I'm getting the above ERROR. I have examined the code line by
>> line,
 but I'm still relatively new to this, and I don't even know what to
>> look
 for!

 Here is the complete code, from beginning 
>> tag:
>>>
>>>
>> Thats why I always prefer to have the brackets line up in the code (I
>> forget what the style is called) so that it looks like this:
>>
>> function someFunction
>> {
>>if(condition)
>>{
>>do something
>>}
>> }
>>
>> etc..
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
I created a webpage with the code listed, and a screen shot of the email I
am currently receiving (with nonsense entered into my inputs)

URL:
http://lpacmarketing.hostzi.com/admin/help.html

Anyone that can provide help will be rewarded in their next life. That's a
promise.

Thanks!

On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan
wrote:

>  On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
> > Allen McCabe wrote:
> > > *Parse error*: syntax error, unexpected $end in *
> > > /home/a9066165/public_html/admin/processccu.php* on line *231*
> > >
> >
> > I have learned from a number of similar mistakes that this error message
> > /normally/ means that I have a miss-matched number of brackets on a
> > foreach, while, or if, etc... statement.
> >
> > Usually the line number will represent the last line in your script.  In
> > this case, they don't seem to match...
> >
> > Jim
> >
> > > I did some major code rewriting about halfway through (lines 114-132),
> and
> > > suddenly I'm getting the above ERROR. I have examined the code line by
> line,
> > > but I'm still relatively new to this, and I don't even know what to
> look
> > > for!
> > >
> > > Here is the complete code, from beginning 
> tag:
> > >
> >
> >
> >
> Thats why I always prefer to have the brackets line up in the code (I
> forget what the style is called) so that it looks like this:
>
> function someFunction
> {
>if(condition)
>{
>do something
>}
> }
>
> etc..
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>


Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote:
> Ashley - I am formatting this way, it just didn't translate into gmail : )

You might try using indentation with more then one space.  Try tabs.
Any respectable editor will allow you to set the number of spaces it
uses to actually represent the tab.

That way I can have mine set to 8 spaces while other can have 3 or 4 spaces.

> 
> Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't
> get the result page anymore. My inbox receives the form (missing cells, but
> that's another issue), but the browser doesn't load processccu.php, it says
> it cannot display the webpage.
> 
> note: I did address the mismatch of the DIV and TABLE (including TR's, TD's)
> tags, so I don't think it's my HTML.
> 
> On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan
> wrote:
> 
>>  On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
>>> Allen McCabe wrote:
 *Parse error*: syntax error, unexpected $end in *
 /home/a9066165/public_html/admin/processccu.php* on line *231*

>>> I have learned from a number of similar mistakes that this error message
>>> /normally/ means that I have a miss-matched number of brackets on a
>>> foreach, while, or if, etc... statement.
>>>
>>> Usually the line number will represent the last line in your script.  In
>>> this case, they don't seem to match...
>>>
>>> Jim
>>>
 I did some major code rewriting about halfway through (lines 114-132),
>> and
 suddenly I'm getting the above ERROR. I have examined the code line by
>> line,
 but I'm still relatively new to this, and I don't even know what to
>> look
 for!

 Here is the complete code, from beginning 
>> tag:
>>>
>>>
>> Thats why I always prefer to have the brackets line up in the code (I
>> forget what the style is called) so that it looks like this:
>>
>> function someFunction
>> {
>>if(condition)
>>{
>>do something
>>}
>> }
>>
>> etc..
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Well, I got it to display a thank you page instead of what I had. I'm
rolling with the punches. Got to work on why my email table is not building
right. Stay tuned!

On Tue, Aug 4, 2009 at 11:09 AM, Allen McCabe  wrote:

> Ashley - I am formatting this way, it just didn't translate into gmail : )
>
> Daniel, Martin, and Jim - Thanks very much, my php runs now, however I
> don't get the result page anymore. My inbox receives the form (missing
> cells, but that's another issue), but the browser doesn't load
> processccu.php, it says it cannot display the webpage.
>
> note: I did address the mismatch of the DIV and TABLE (including TR's,
> TD's) tags, so I don't think it's my HTML.
>
>   On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan <
> a...@ashleysheridan.co.uk> wrote:
>
>>  On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
>> > Allen McCabe wrote:
>> > > *Parse error*: syntax error, unexpected $end in *
>> > > /home/a9066165/public_html/admin/processccu.php* on line *231*
>> > >
>> >
>> > I have learned from a number of similar mistakes that this error message
>> > /normally/ means that I have a miss-matched number of brackets on a
>> > foreach, while, or if, etc... statement.
>> >
>> > Usually the line number will represent the last line in your script.  In
>> > this case, they don't seem to match...
>> >
>> > Jim
>> >
>> > > I did some major code rewriting about halfway through (lines 114-132),
>> and
>> > > suddenly I'm getting the above ERROR. I have examined the code line by
>> line,
>> > > but I'm still relatively new to this, and I don't even know what to
>> look
>> > > for!
>> > >
>> > > Here is the complete code, from beginning 
>> tag:
>> > >
>> >
>> >
>> >
>> Thats why I always prefer to have the brackets line up in the code (I
>> forget what the style is called) so that it looks like this:
>>
>> function someFunction
>> {
>>if(condition)
>>{
>>do something
>>}
>> }
>>
>> etc..
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
>


Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Ashley - I am formatting this way, it just didn't translate into gmail : )

Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't
get the result page anymore. My inbox receives the form (missing cells, but
that's another issue), but the browser doesn't load processccu.php, it says
it cannot display the webpage.

note: I did address the mismatch of the DIV and TABLE (including TR's, TD's)
tags, so I don't think it's my HTML.

On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan
wrote:

>  On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
> > Allen McCabe wrote:
> > > *Parse error*: syntax error, unexpected $end in *
> > > /home/a9066165/public_html/admin/processccu.php* on line *231*
> > >
> >
> > I have learned from a number of similar mistakes that this error message
> > /normally/ means that I have a miss-matched number of brackets on a
> > foreach, while, or if, etc... statement.
> >
> > Usually the line number will represent the last line in your script.  In
> > this case, they don't seem to match...
> >
> > Jim
> >
> > > I did some major code rewriting about halfway through (lines 114-132),
> and
> > > suddenly I'm getting the above ERROR. I have examined the code line by
> line,
> > > but I'm still relatively new to this, and I don't even know what to
> look
> > > for!
> > >
> > > Here is the complete code, from beginning 
> tag:
> > >
> >
> >
> >
> Thats why I always prefer to have the brackets line up in the code (I
> forget what the style is called) so that it looks like this:
>
> function someFunction
> {
>if(condition)
>{
>do something
>}
> }
>
> etc..
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>


Re: [PHP] HELP - Parse Error

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote:
> Allen McCabe wrote:
> > *Parse error*: syntax error, unexpected $end in *
> > /home/a9066165/public_html/admin/processccu.php* on line *231*
> > 
> 
> I have learned from a number of similar mistakes that this error message
> /normally/ means that I have a miss-matched number of brackets on a
> foreach, while, or if, etc... statement.
> 
> Usually the line number will represent the last line in your script.  In
> this case, they don't seem to match...
> 
> Jim
> 
> > I did some major code rewriting about halfway through (lines 114-132), and
> > suddenly I'm getting the above ERROR. I have examined the code line by line,
> > but I'm still relatively new to this, and I don't even know what to look
> > for!
> > 
> > Here is the complete code, from beginning  tag:
> > 
> 
> 
> 
Thats why I always prefer to have the brackets line up in the code (I
forget what the style is called) so that it looks like this:

function someFunction
{
if(condition)
{
do something
}
}

etc..

Thanks,
Ash
http://www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote:
> *Parse error*: syntax error, unexpected $end in *
> /home/a9066165/public_html/admin/processccu.php* on line *231*
> 

I have learned from a number of similar mistakes that this error message
/normally/ means that I have a miss-matched number of brackets on a
foreach, while, or if, etc... statement.

Usually the line number will represent the last line in your script.  In
this case, they don't seem to match...

Jim

> I did some major code rewriting about halfway through (lines 114-132), and
> suddenly I'm getting the above ERROR. I have examined the code line by line,
> but I'm still relatively new to this, and I don't even know what to look
> for!
> 
> Here is the complete code, from beginning  tag:
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] HELP - Parse Error

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 13:47, Allen McCabe wrote:
[snip="everything"]

Looks like you're missing a closing bracket here:

if(!empty($_POST['EMailAddress'])) {
 $EMailAddress = $_POST['EMailAddress'];
 } else {
 $EMailAddress = " ";
// <--- Right here

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help! Parse error.....

2001-07-20 Thread rm

in the great big FWIW department, the error may not be
on that line, it may only indicate the point where php
recognized an error.  I had one page with several
includes and html code...php reported a parse error on
the main page, I couldn't find it, however,
eventually, I tracked the error to an early include
file that was missing a bracket.  Chances are you're
missing a bracket some place before the reported
error, could be anyplace.  


rm


--- Jack Sasportas <[EMAIL PROTECTED]>
wrote:
> Tried the alternative stuff with no luck...
> Looking for any crazy ideas that might work...
> 
> Thanks !
> 
> Paul Strange wrote:
> 
> > On Friday 20 July 2001 06:16, Jack Sasportas
> wrote:
> > > I have some code that runs under php3 perfectly,
> but now under 4 I get a
> > > parse error
> > > on this specific line, can't figure out how to
> resolve it.
> > >
> > > the code looks like this
> > >
> > > 
> > > 
> > > 
> > >
> > > the error is in the middle line  which is the
> end of a condition...
> > >
> > > Thanks in advance...
> >
> > Have you tried using the alternative syntax
> capabilities?  More here:
> >
>
http://www.php.net/manual/en/control-structures.alternative-syntax.php
> >
> > --
> >
> > Paul Strange
> > Lead Programmer
> > Level 67 LC
> > ---
> > eMail: [EMAIL PROTECTED] Office:
> 801.486.4686  Fax: 801.994.0467
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> --
>
___
> Jack Sasportas
> Innovative Internet Solutions
> Phone 305.665.2500
> Fax 305.665.2551
> www.innovativeinternet.com
> www.web56.net
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help! Parse error.....

2001-07-20 Thread Jack Sasportas

Tried the alternative stuff with no luck...
Looking for any crazy ideas that might work...

Thanks !

Paul Strange wrote:

> On Friday 20 July 2001 06:16, Jack Sasportas wrote:
> > I have some code that runs under php3 perfectly, but now under 4 I get a
> > parse error
> > on this specific line, can't figure out how to resolve it.
> >
> > the code looks like this
> >
> > 
> > 
> > 
> >
> > the error is in the middle line  which is the end of a condition...
> >
> > Thanks in advance...
>
> Have you tried using the alternative syntax capabilities?  More here:
> http://www.php.net/manual/en/control-structures.alternative-syntax.php
>
> --
>
> Paul Strange
> Lead Programmer
> Level 67 LC
> ---
> eMail: [EMAIL PROTECTED] Office: 801.486.4686  Fax: 801.994.0467
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help! Parse error.....

2001-07-20 Thread Paul Strange

On Friday 20 July 2001 06:16, Jack Sasportas wrote:
> I have some code that runs under php3 perfectly, but now under 4 I get a
> parse error
> on this specific line, can't figure out how to resolve it.
>
> the code looks like this
>
> 
> 
> 
>
> the error is in the middle line  which is the end of a condition...
>
> Thanks in advance...

Have you tried using the alternative syntax capabilities?  More here:
http://www.php.net/manual/en/control-structures.alternative-syntax.php

-- 

Paul Strange
Lead Programmer
Level 67 LC
---
eMail: [EMAIL PROTECTED] Office: 801.486.4686  Fax: 801.994.0467

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help..Parse error

2001-07-19 Thread Jack Sasportas

Actually that is the default setting under 4, and the rest of the code works
with the short tags, it's definately something code related... I don;t think
it likes that code, but can't find anything to help me resolve the problem.
I was hoping not to re-write the code just yet...

Thanks

Steve Edberg wrote:

> My guess is that you have the short_open_tags option on in your PHP3
> config, but off in your PHP4 config. If it's off, PHP will only
> recognize the  tags, not . PHP config params can be
> set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll
> down to short_open_tag in
>
> http://www.php.net/manual/en/configuration.php#configuration.file
>
> for more info. You can also check your config via the phpinfo() function.
>
> - steve
>
> At 1:45 AM -0400 7/20/01, Jack Sasportas wrote:
> >I have some code that runs under php3, but under 4 I get a parse error
> >on this specific line, can't figure out how to resolve it.
> >
> >the code looks like this
> >
> >
> >
> >
> >the error is in the middle line  which is the end of a condition...
> >
> >Thanks in advance...
> >
> >
> >--
> >___
> >Jack Sasportas
> >Innovative Internet Solutions
> >Phone 305.665.2500
> >Fax 305.665.2551
> >www.innovativeinternet.com
> >www.web56.net
> >
> --
> +-- Factoid: Of the 100 largest economies in the world, 51 are --+
> | Steve Edberg   University of California, Davis |
> | [EMAIL PROTECTED]   Computer Consultant |
> | http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
> +--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help..Parse error

2001-07-19 Thread Steve Edberg

My guess is that you have the short_open_tags option on in your PHP3 
config, but off in your PHP4 config. If it's off, PHP will only 
recognize the  tags, not . PHP config params can be 
set in php.ini, .htaccess, and/or Apache httpd.conf files. Scroll 
down to short_open_tag in

http://www.php.net/manual/en/configuration.php#configuration.file

for more info. You can also check your config via the phpinfo() function.

- steve



At 1:45 AM -0400 7/20/01, Jack Sasportas wrote:
>I have some code that runs under php3, but under 4 I get a parse error
>on this specific line, can't figure out how to resolve it.
>
>the code looks like this
>
>
>
>
>the error is in the middle line  which is the end of a condition...
>
>Thanks in advance...
>
>
>--
>___
>Jack Sasportas
>Innovative Internet Solutions
>Phone 305.665.2500
>Fax 305.665.2551
>www.innovativeinternet.com
>www.web56.net
>
-- 
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]