Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-05-2005, 12:56 PM error?
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
Can anyone see the cause of this error?
parse error, unexpected $ in /home/hsphere/local/home/cordy/simupets.com/toyquest.php on line 138

Last edited by timsquash5; 04-05-2005 at 03:31 PM..
timsquash5 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-05-2005, 01:09 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
hate problems like this, makes you so dont it??

I can't see a problem, i only get that error when i forget to close a line with ; Sorry!
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 04-05-2005, 01:16 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
that's what i thought was wrong but i couldn't find it
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 04-05-2005, 01:20 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
when i get around 2:45 i drop the script in to Zend Studio and see what it tells me for errors... (besides any missing include file)

If you can please post all the INCLUDE files as they will extend the length of your script so i can tell you what is wrong and see if i can get it to work
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 04-05-2005, 01:23 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
the error, is in this page, i don't really want to show the include files.
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 04-05-2005, 01:28 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
PHP Code:
            <input type=\"submit\" value=\"Give Item\"> 
That's line 138, but there is nothing wrong with it! I checked around the line as well and there still appears to be nothing wrong with it. Is this still the only error it comes up with, and does it appear if you try and do anything with the script, not just asking it to do specific things??
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 04-05-2005, 02:13 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
Yes that is the only error, and it happens what ever you do with the script.
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 04-05-2005, 03:21 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
try adding another } at the end of your script before ?> as in zend it picked up that something was not right and was not termanating properly..

as at line 81 you start your if statment (well at line 80 you start it) but on 81 you have { but no closing for it and php thinks it goes on and on

So around line 120 is were you want your closing bracket

after that if statement but before your last one
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1

Last edited by amw_drizz; 04-05-2005 at 03:24 PM..
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 04-05-2005, 03:30 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
found it at last, maybe i should pay more attention to the indenting, there should have been a } on line 120, thanks for your help
timsquash5 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to error?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49502 seconds with 12 queries