• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Problem in Gesior tfs 0.3.6

Godz4t4n1c

New Member
Joined
Sep 9, 2015
Messages
51
Reaction score
1
I have a problem wanting to create the page with the gesior 0.3.6 OTX gives me this error

STEP 2
Check database connection
If you don't see any errors press link to STEP 3 - Add tables and columns to DB. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68


Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 68

<?php

/**#@+
* @version 0.0.1
*/

/**
* @package POT
* @version 0.1.3
* @author Wrzasq <[email protected]>
* @Copyright 2007 (C) by Wrzasq
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
*/

/**
* SQLite connection interface.
*
* <p>
* At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.
* </p>
*
* @package POT
* @version 0.1.3
*/
class OTS_DB_SQLite extends OTS_Base_DB
{
/**
* Creates database connection.
*
* <p>
* Connects to SQLite database on given arguments.
* <p>
*
* <p>
* List of parameters for this drivers:
* </p>
*
* <ul>
* <li><var>database</var> - database name.</li>
* </ul>
*
* @version 0.0.7
* @param array $params Connection parameters.
* @throws PDOException On PDO operation error.
*/
public function __construct($params)
{
if( isset($params['prefix']) )
{
$this->prefix = $params['prefix'];
}

// PDO constructor
try
{
parent::__construct('sqlite:' . $params['database']);
}
catch(PDOException $error)
{
echo 'Can\'t connect to SQLite database.</font>';
exit;
}

}

/**#@-*/

?>

Help!!
 
Last edited:
You only need to add a curly bracket "}" at the end of your script, since the class isn't closed correctly.

Also - you should wrap your code in the correct tags for improved readability and line-numbering.
> How to display CODE properly in your post

PHP:
<?php
/**#@+
* @version 0.0.1
*/
/**
* @package POT
* @version 0.1.3
* @author Wrzasq <[email protected]>
* @Copyright 2007 (C) by Wrzasq
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
*/
/**
* SQLite connection interface.
*
* <p>
* At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.
* </p>
*
* @package POT
* @version 0.1.3
*/
class OTS_DB_SQLite extends OTS_Base_DB
{
    /**
    * Creates database connection.
    *
    * <p>
    * Connects to SQLite database on given arguments.
    * <p>
    *
    * <p>
    * List of parameters for this drivers:
    * </p>
    *
    * <ul>
    * <li><var>database</var> - database name.</li>
    * </ul>
    *
    * @version 0.0.7
    * @param array $params Connection parameters.
    * @throws PDOException On PDO operation error.
    */
    public function __construct($params)
    {
        if( isset($params['prefix']) ) {
            $this->prefix = $params['prefix'];
        }
        // PDO constructor
        try {
            parent::__construct('sqlite:' . $params['database']);
        } catch(PDOException $error) {
            echo 'Can\'t connect to SQLite database.</font>';
            exit;
        }
    }
}
 
Back
Top