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 3 of 3

Thread: Parse Error

  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    97
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Parse Error

    I'm getting a parse error when i run the index.php

    Parse error: parse error in C:\wamp\www\register_oop\database.php on line 17
    heres my code line 17 is
    PHP Code:
    mysql_close($this->connection)); 
    PHP Code:

    public function close_connection() {
            if(isset(
    $this->connection)) {
                
    mysql_close($this->connection));
                }
            } 

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    69
    Thanks
    0
    Thanked 15 Times in 15 Posts
    PHP Code:
    // Get rid of extra parenthesis
    mysql_close($this->connection));

    // Like this
    mysql_close($this->connection); 

  • Users who have thanked steelaz for this post:

    Kev0121 (03-27-2009)

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    97
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Bingo, thanks


  •  

    Posting Permissions

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