enable mysql within php, how?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Re: enable mysql within php, how?

Post by liljester »

in your php.ini file, change line 372 to this:

Code: Select all

display_errors = On
also change line 377 to this:

Code: Select all

display_startup_errors = On
those should let you see what errors php is generating.

after you make changes to php.ini, be sure to restart your web service.
gphp
Forum Commoner
Posts: 29
Joined: Sun Feb 17, 2008 1:40 pm

Re: enable mysql within php, how?

Post by gphp »

So, I am back to the original error!

Code: Select all

Fatal error: Call to undefined function mysql_connect() in C:\www\Apache\htdocs\db_connect.php on line 4
That has to do with mysql but what I do not know?
Thanks,
George

it is a bug in mysql:

Code: Select all

my_thread_global_end()
I guess now I need to find where to get the windows version patch or a different download.
gphp
Forum Commoner
Posts: 29
Joined: Sun Feb 17, 2008 1:40 pm

Re: enable mysql within php, how?

Post by gphp »

I got it together "FINALLY"!!!
There is a solution on mysql website. I needed php_mysql.dll and php_mysqli.dll and their connector libmysql.dll files.
Thanks.
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Re: enable mysql within php, how?

Post by liljester »

... didnt i say that.. twice?
Post Reply