Click to See Complete Forum and Search --> : [RESOLVED] mysqli


nicolino101
03-08-2007, 09:43 PM
I need some help please... this is driving me nuts!
I've installed apache 2.2 php 5.1 mysql 5 on windows 2000 professional, successfully I might add.
I try to use mysqli and get the error...
Fatal error: Trying to clone an uncloneable object of class mysqli in C:\server\docs\mysqliTest.php on line 2

<?php

$mysqli = new mysqli("localhost", "root", "pass", "db")
or die(mysqli_connect_error());

?>
My phpinfo() says that mysqli and mysql are working....

Please help?

Thanks soooo much NOGDOG. I am forever in your debt!

NogDog
03-08-2007, 10:22 PM
Try setting zend.ze1_compatibility_mode (http://us3.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode) to off in your configuration.

nicolino101
03-08-2007, 10:31 PM
You are a good friend, I am in your debt.
Thanks sooooo much!
Nick

NogDog
03-08-2007, 10:33 PM
Glad it worked. Be sure to mark the thread as "resolved" if it is. (See the "Thread Tools" drop-down menu at the top of the thread.)