Page 1 of 1

database connection error

PostPosted: 09. July 2005 09:06
by paul de paula
thanks guys for sharing your ideas...but i have a problem in database connection using xampp.
i have installed xampp for a couple of weeks now and one of the problems that i've encountered is how to connect my php code to the database located in xampp/mysql/bin (filename.sql). after typing[mysql -u root -p <filename.sql] and it was sucessful. When i execute the code [theres a FATAL ERROR: CLASS 'MYSQLI' not found in C:apachefriends/xampp/htdocs/filename.php].

i hope anyone could help me with this problem, i would greatly appreciate it...im working with our school project. TNX

PostPosted: 09. July 2005 13:04
by Wiedmann
When i execute the code [theres a FATAL ERROR: CLASS 'MYSQLI' not found in C:apachefriends/xampp/htdocs/filename.php].

This PHP extension is not enabled by default.

php.ini ("\xampp\apache\bin"):
extension=php_mysqli.dll

PostPosted: 10. July 2005 06:35
by paul de paula
thanx!

i've allready do that, but the same error...the php.ini should be placed in xammp/apache/bin? in my case i put it in c:\windows...would it be ok if i put it there?

PostPosted: 10. July 2005 09:07
by Wiedmann
the php.ini should be placed in xammp/apache/bin?

yes (must be placed there. and it's allready there)

in my case i put it in c:\windows...would it be ok if i put it there?

no