Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15

Thread: Error on ?>

  1. #1
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts

    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?

  • #2
    Regular Coder
    Join Date
    Apr 2007
    Posts
    295
    Thanks
    0
    Thanked 19 Times in 19 Posts
    Looks like you missed a closing }, or have one too many opening {

  • #3
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    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..

  • #4
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Ah ha fixed. Thanks :P

  • #5
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Download and install a proper IDE. You won't have these kind of problems.

    http://www.eclipse.org/pdt/

  • #6
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    what is a IDE?

  • #7
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    Integrated Development Environment.

    They typically include syntax checking, syntax highlight, debugging features and others.

  • #8
    New Coder
    Join Date
    Jun 2007
    Location
    VA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Usually indicates that you're missing a } somewhere. Can you post all of the code?

  • #9
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Quote Originally Posted by ddanatzko View Post
    Usually indicates that you're missing a } somewhere. Can you post all of the code?
    Ah ha fixed. Thanks :P
    Didn't read the topic?

  • #10
    New Coder
    Join Date
    Jun 2007
    Location
    VA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    Quote Originally Posted by aedrin View Post
    Didn't read the topic?
    Posted just before mine did...sorry

  • #11
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by ddanatzko View Post
    Posted just before mine did...sorry
    it's post #2

  • #12
    New Coder
    Join Date
    Jun 2007
    Location
    VA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #13
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    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
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #14
    New Coder
    Join Date
    Jun 2007
    Location
    VA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #15
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    No hard feelings, and I think I can speak for everyone here!



    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •