Pyroman Posted September 22, 2014 Posted September 22, 2014 @webman Heya, I'm trying to install classroom bookings using XAMPP and get the following error: A PHP Error was encountered Severity: Warning Message: mysql_real_escape_string() expects parameter 2 to be resource, boolean given Filename: mysql/mysql_driver.php Line Number: 232 Have i missed something in the installation process? Cheers
Bradlys Posted September 22, 2014 Posted September 22, 2014 @webman Heya, I'm trying to install classroom bookings using XAMPP and get the following error: A PHP Error was encountered Severity: Warning Message: mysql_real_escape_string() expects parameter 2 to be resource, boolean given Filename: mysql/mysql_driver.php Line Number: 232 Have i missed something in the installation process? Cheers I don't use the software, but can you post the PHP code? also @webman you going to upgrade the code to mysqli?
Pyroman Posted September 22, 2014 Author Posted September 22, 2014 The line it refers to in mysql_driver.php is : return mysql_real_escape_string($str, $this->conn_id);
webman Posted September 22, 2014 Posted September 22, 2014 Hi Can you give me any details about the environment that you're running it in please? I.e. web server? MySQL? Has anything else changed recently or is this a fresh install on a fresh MySQL DB and new user? Both: you should be able to change it to use MySQLi by editing system/application/config/database.php, and it is the "driver" entry that can be changed: $db['default']['dbdriver'] = 'mysqli'; Craig.
Pyroman Posted September 23, 2014 Author Posted September 23, 2014 Hi Can you give me any details about the environment that you're running it in please? I.e. web server? MySQL? Has anything else changed recently or is this a fresh install on a fresh MySQL DB and new user? Both: you should be able to change it to use MySQLi by editing system/application/config/database.php, and it is the "driver" entry that can be changed: $db['default']['dbdriver'] = 'mysqli'; Craig. Running it a XAMPP environment according to the info with the package it's the following setup: Apache 2.4.10, MySQL 5.5.39, PHP 5.4.31, phpMyAdmin 4.2.7.1, OpenSSL 0.9.8, XAMPP Control Panel 3.2.1, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 7.0.42 (with mod_proxy_ajp as connector), Strawberry Perl 7.0.42 Portable
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now