"Help me please :( "
Posted: Sat Apr 26, 2008 10:20 am
Hi everyone,
I have a problem with my php code to connect to the MYSQL.
I use PHP 5.2.5 and MySQL server 5.x.
MySQL is running well, I can connect to the MySQL Server via Commandline and it responds correctly.
But when I try to connect to the data base via my Script ($link=mysql_connect...), it shows me this error>> Call to undefined function.......
I installed my PHP with the windows installer and it sets the PHP.ini and the extensions like php_mysql.dll or php_imap.dll .... automatically. ( you can choose which extensions to install in the installation wizard )
What should I do?
Currently, the ext. are saved to c:\PHP\ext and the PHP.INI file has been saved to c:\php\
The installer has done it automatically, I didn't save them there.
I have also tried this too>> I copied and pasted the php.ini file too the c:\windows\ directory and copied all the extensions to the c:\windows\system32\ directory. But still my scripts doesn't work.
Please help me out of this. I need it from you. You are experts in PHP/MySQL. So please help my firends.
Sincerely Yours
Saman J.
I have a problem with my php code to connect to the MYSQL.
I use PHP 5.2.5 and MySQL server 5.x.
MySQL is running well, I can connect to the MySQL Server via Commandline and it responds correctly.
But when I try to connect to the data base via my Script ($link=mysql_connect...), it shows me this error>> Call to undefined function.......
I installed my PHP with the windows installer and it sets the PHP.ini and the extensions like php_mysql.dll or php_imap.dll .... automatically. ( you can choose which extensions to install in the installation wizard )
What should I do?
Currently, the ext. are saved to c:\PHP\ext and the PHP.INI file has been saved to c:\php\
The installer has done it automatically, I didn't save them there.
I have also tried this too>> I copied and pasted the php.ini file too the c:\windows\ directory and copied all the extensions to the c:\windows\system32\ directory. But still my scripts doesn't work.
Please help me out of this. I need it from you. You are experts in PHP/MySQL. So please help my firends.
Sincerely Yours
Saman J.