Page 1 of 1

PHP and MYSQL

Posted: Tue Jan 11, 2005 6:01 am
by ringworm
Sorry am new to this, I have been followinh examples in a book
I have the latest version of php and mysql running on iis5.

php has been working but when i try to connect to the db using this:-

'$db = new mysqli('localhost', 'bookorama', 'bookorama123', 'books');'

I get this error

'Fatal error: Class 'mysqli' not found in c:\Inetpub\wwwroot\mystuff\chap11\results.php on line 26
PHP has encountered an Access Violation at 0101774D'

---------------------------------------------------------------------
in php.ini

all i have changed is

doc_root = "c:/Inetpub/wwwroot"
extension_dir = "C:/php/ext"

extension=php_gd2.dll
extension=php_imap.dll
extension=php_mysql.dll
extension=php_mysqli.dll


in iis

have extension mapping set

C:\php\php5isapi.dll

------
the extension .dlls are kept in c:\php\ext

can someone please help

Posted: Tue Jan 18, 2005 6:43 am
by ckuipers
You have to copy libmysql.dll from your php directory to the windows/system32 folder.
That is if you're using php5.0.3, I believe that before, you have to copy libmysqli.dll.