Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-31-2007, 05:40 AM   PM User | #1
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Error on ?>

I have been trying everything to get this script to work, and nothing.

I get this error when I access the page.

PHP Code:
Parse errorsyntax errorunexpected $end in /home/rodgameo/public_html/dbank.php on line 75 
And this is all that is on line 75

Code:
?>
Any ideas?
masterofollies is offline   Reply With Quote
Old 05-31-2007, 06:17 AM   PM User | #2
mr e
Regular Coder

 
Join Date: Apr 2007
Posts: 295
Thanks: 0
Thanked 19 Times in 19 Posts
mr e is on a distinguished road
Looks like you missed a closing }, or have one too many opening {
mr e is offline   Reply With Quote
Old 05-31-2007, 09:12 AM   PM User | #3
matak
Banned

 
Join Date: Apr 2007
Posts: 428
Thanks: 29
Thanked 5 Times in 5 Posts
matak is on a distinguished road
this code has error on line 3

PHP Code:
<?php
echo $string
?>
missing ;

correct

PHP Code:
<?php
echo $string;
?>
Lol, considering you defined the string before..
matak is offline   Reply With Quote
Old 05-31-2007, 03:15 PM   PM User | #4
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
Ah ha fixed. Thanks :P
masterofollies is offline   Reply With Quote
Old 05-31-2007, 05:24 PM   PM User | #5
aedrin
Senior Coder

 
Join Date: Jan 2007
Posts: 1,648
Thanks: 1
Thanked 58 Times in 54 Posts
aedrin will become famous soon enough
Download and install a proper IDE. You won't have these kind of problems.

http://www.eclipse.org/pdt/
aedrin is offline   Reply With Quote
Old 06-01-2007, 03:40 PM   PM User | #6
masterofollies
Senior Coder

 
Join Date: May 2005
Posts: 2,137
Thanks: 96
Thanked 72 Times in 72 Posts
masterofollies can only hope to improve
what is a IDE?
masterofollies is offline   Reply With Quote
Old 06-01-2007, 03:55 PM   PM User | #7
PappaJohn
Senior Coder

 
Join Date: Apr 2007
Location: Quakertown PA USA
Posts: 1,028
Thanks: 1
Thanked 125 Times in 123 Posts
PappaJohn will become famous soon enough
Integrated Development Environment.

They typically include syntax checking, syntax highlight, debugging features and others.
PappaJohn is offline   Reply With Quote
Old 06-01-2007, 04:08 PM   PM User | #8
ddanatzko
New Coder

 
Join Date: Jun 2007
Location: VA
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
ddanatzko is an unknown quantity at this point
Usually indicates that you're missing a } somewhere. Can you post all of the code?
ddanatzko is offline   Reply With Quote
Old 06-01-2007, 05:37 PM   PM User | #9
aedrin
Senior Coder

 
Join Date: Jan 2007
Posts: 1,648
Thanks: 1
Thanked 58 Times in 54 Posts
aedrin will become famous soon enough
Quote:
Originally Posted by ddanatzko View Post
Usually indicates that you're missing a } somewhere. Can you post all of the code?
Quote:
Ah ha fixed. Thanks :P
Didn't read the topic?
aedrin is offline   Reply With Quote
Old 06-01-2007, 05:45 PM   PM User | #10
ddanatzko
New Coder

 
Join Date: Jun 2007
Location: VA
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
ddanatzko is an unknown quantity at this point
Unhappy

Quote:
Originally Posted by aedrin View Post
Didn't read the topic?
Posted just before mine did...sorry
ddanatzko is offline   Reply With Quote
Old 06-01-2007, 05:46 PM   PM User | #11
matak
Banned

 
Join Date: Apr 2007
Posts: 428
Thanks: 29
Thanked 5 Times in 5 Posts
matak is on a distinguished road
Quote:
Originally Posted by ddanatzko View Post
Posted just before mine did...sorry
it's post #2
matak is offline   Reply With Quote
Old 06-01-2007, 06:15 PM   PM User | #12
ddanatzko
New Coder

 
Join Date: Jun 2007
Location: VA
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
ddanatzko is an unknown quantity at this point
Quote:
Originally Posted by matak View Post
it's post #2
OK OK, so I hit reply and then went to the fridge to get a drink and by the time I hit submit others has already replied, I'M SORRY!!!! Would you like me to edit it so we can move on?
ddanatzko is offline   Reply With Quote
Old 06-01-2007, 06:45 PM   PM User | #13
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough
I'm not trying to beat you to death with this, but I'd like to point out, for accuracy's sake, that you weren't even a member when he posted that it was solved.

Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Old 06-01-2007, 06:51 PM   PM User | #14
ddanatzko
New Coder

 
Join Date: Jun 2007
Location: VA
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
ddanatzko is an unknown quantity at this point
Hmmm, you are correct, maybe I'm just losing my mind. Anywho, sorry about the extraneous post, I promise to never do it again, I've learned my lesson and I'm man enough to own up to my mistake. Can we stop beating the dead horse now?
ddanatzko is offline   Reply With Quote
Old 06-01-2007, 07:42 PM   PM User | #15
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough
No hard feelings, and I think I can speak for everyone here!



Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:59 PM.


Advertisement
Log in to turn off these ads.