Results 1 to 3 of 3

Thread: [RESOLVED] Probably a very stupid question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Godzone, oops Oz
    Posts
    355

    Resolved [RESOLVED] Probably a very stupid question

    Not even sure if I should ask this as the PHP gods may get angry.

    A global declaration line in a function:

    Code:
    global $qid, $qtitle, $qdesc, $qno, $cquestion
    Does this require a semi-colon at the end of the line like other lines of php script

    Before anyone asks, was given a print out via email to see if I could spot one of those "T" errors and that was the first thing that came to mind. Don't have php installed on this lappie.

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Probably a very stupid question

    yes, it does require the line to be terminated with a semi-colon.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Godzone, oops Oz
    Posts
    355

    Re: Probably a very stupid question

    Quote Originally Posted by kows View Post
    yes, it does require the line to be terminated with a semi-colon.
    Thanks dude, more simply questions coming I'm sure. Have spotted a few other things wrong with the script myself so hate to think what else is going down there.

Posting Permissions

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



Click Here to Expand Forum to Full Width