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 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Error: unexpected T_STRING

    I'm trying to learn from a book, but the following example code gives an error on line 34, and I can't figure out why it's doing that.

    http://rafb.net/paste/results/j6YLMr27.html

    Can anyone help me out?

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works fine for me

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP5 under xampp?

  • #4
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bump?

  • #5
    Regular Coder
    Join Date
    Dec 2005
    Posts
    346
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Post the code for that page...I am getting a Error 404. Did you delete the page?

  • #6
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    You need to post your code so we can help you find the typo.

  • #7
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's in the first post. You would have known that had you even read it.

    http://rafb.net/paste/results/F3Ac9d66.html

    ^Old link got outdated, new link

    www.rafb.net/paste == programming code pasteboard

  • #8
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    124
    Chapter 4

    is line 34 and 35 , they aint PHP and if its supposed to be HTML then its in the wrong place , what are those lines for ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #9
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not php because I'm stupid and didn't delete that when I copy/pasted the example.

    I can't believe I missed that. Thanks so much.


  •  

    Posting Permissions

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