I am trying to get the new improved version of this connect script working on my server.
I have it working on my notebook using Marc Liyanage's installation of PHP Version 5.0.4 www.entropy.ch Release 1 and MySQL 4.1.16-standard
The version That I can't get running. PHP Version 5.1.2 with MySQL 4.1.18-standard. I have installed the old version of the ecommerce site from PHP&MySQL edition#1 and it seems to work fine.
The line causing the error is.
// Improved MySQL Version:
$dbc = mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() );
And the error is.
PHP Fatal error: Trying to clone an uncloneable object of class mysqli in /mysql_connect.php on line 15
The mysqli settings seem to be the same. except for the following.
On my notebook.
mysqli
MysqlI Support enabled
Client API version 4.1.3-beta
On the server.
mysqli
MysqlI Support enabled
Client API version 4.1.16
Anybody aware of what might be causing this error (Trying to clone an uncloneable object), and how to remidy it?
Any help greatly appreciated.