Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2014
    Thanked 0 Times in 0 Posts

    Recurring problems with Tables

    In my Wonderful Site, "beautiful-music.org" there are 2 problems which have me beat!

    And worse, they didn't used to be problems!

    It has to do with opening a <table>, easy enough, but when it's "Parse error: syntax error, unexpected '}', expecting ',' or ';' in /home/beaurn3f/public_html/Music/Music.php on line 30", and I can't see anything wrong, then what?

    But then, I turned 73 this year. What right do I have to have a Site?

  2. #2
    Senior Coder
    Join Date
    Jun 2008
    New Jersey
    Thanked 259 Times in 256 Posts
    Welcome to the site. Age makes no difference to programming!

    The key here is that has nothing to do with tables. This is an issue with your PHP. You have modified it, inadvertently or not, and that's causing your site to fail. To help diagnose, we need to see at least what is above/below line 73 (so lets say, 71-75), and to be safer, the entire block that line 73 is part of.

  3. #3
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Thanked 1,008 Times in 1,005 Posts
    If nothing is wrong on line 73 the problem is most probably on line 72. If you still can't find the error (looks like you end the table block too soon) then please post the code for the table.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  4. #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 Posts
    Identifying the line isn't as easy as just looking at the error. The error will define where it detects a problem has arisen. More often than not you're looking at an if branch which has an instruction that is missing the terminating semi-colon on it, but I've seen a missing brace go through near 2K lines of code before it finally fails on the last instruction (the error line matching the last line of code is the worst). This error you see alone can be caused by simply having the incorrect syntax.
    Post the code for where you added the <table> tag, as well as +/- about 10 lines around it or the entire branch if you can. That'd be the best place to start.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

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