Not detecting MySQL version [message #3078] |
Tue, 02 October 2012 21:24 |
robgratt
Messages: 6 Registered: September 2012 Location: Australia
|
Junior Member |
|
|
Hi,
I'm getting the following error:
"Fatal error: Call to undefined function mysqli_real_escape_string() in C:\wamp\www\radicore\includes\dml.mysql.class.inc on line 908"
I re-ead the installation instructions and cam across:
"NOTE: this code will work for both PHP 4 and PHP 5, and (if using a MySQL database) automatically detect if you have loaded the old 'mysql' extension or the new and improved 'mysqli' extension."
It seems that the MySQL version type isn't being picked up.
I'm running Win 7 with MySQL version 5.1.33 and Apache 2.2.11
and PHP 5.2.9-2.
All help appreciated!
Rob
Rob Grattan
|
|
|
|
Re: Not detecting MySQL version [message #3094 is a reply to message #3081] |
Mon, 08 October 2012 01:39 |
robgratt
Messages: 6 Registered: September 2012 Location: Australia
|
Junior Member |
|
|
Sorry,
I thought I'd already posted this.
The mysqli extension is definately commented out in php.ini.
Now I get error messages like this:
"Fatal error: Call to undefined function mysqli_real_escape_string() in C:\wamp\www\radicore\includes\dml.mysql.class.inc on line 908
Call Stack"
Anyone any ideas?
Rob
Rob Grattan
|
|
|
Re: Not detecting MySQL version [message #3096 is a reply to message #3094] |
Mon, 08 October 2012 02:04 |
AJM
Messages: 2370 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Did you restart Apache after commenting out that extension in your php.ini file? What value are you getting from extension_loaded() ? If returns TRUE then Radicore will assume that the whole extenion has been loaded and that you want to use it. If it later fails because it cannot find mysqli_real_escape_string() then it points to a problem with your PHP installation. I have heard of similar problems with these all-in-one packages like WAMP before, which is why I never use them.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|