Hi,
i wrote a simple testing page. it should test if it can connect to MySQL db.
however, i have an error message as followed :
*Fatal error*: Call to undefined function mysql_connect() in *F:\Mes
documents\Development\Website\Immense\checklogin.php* on line *23
*on line 23, i have the
Alain Roger wrote:
Hi,
i wrote a simple testing page. it should test if it can connect to MySQL db.
however, i have an error message as followed :
*Fatal error*: Call to undefined function mysql_connect() in *F:\Mes
documents\Development\Website\Immense\checklogin.php* on line *23
*on line
i've seen that non of extension are activated...neither mysql.dll nor
mysqli.dll
after uncommenting them and restarting Apache, it still does not work :-(
On 4/5/06, Jochem Maas [EMAIL PROTECTED] wrote:
Alain Roger wrote:
Hi,
i wrote a simple testing page. it should test if it can
Create a page like this:
?php
phpinfo();
?
and see what the output tells you about mysql...might shed some light on it.
-B
Alain Roger wrote:
i've seen that non of extension are activated...neither mysql.dll nor
mysqli.dll
after uncommenting them and restarting Apache, it still does not
nothing about MySQL...only what is in my path variable :-(
1. i stopped apache server
2. i uncomment -- extension=php_mysql.dll and extension=php_mysqli.dll in
my php.ini file
3. i updated my extension_dir like that -- extension_dir =
F:\WebServer\PHP511\ext
4. i restarted apache
5. phpinfo still
Alain Roger wrote:
nothing about MySQL...only what is in my path variable :-(
1. i stopped apache server
2. i uncomment -- extension=php_mysql.dll and extension=php_mysqli.dll in
my php.ini file
3. i updated my extension_dir like that -- extension_dir =
F:\WebServer\PHP511\ext
4. i restarted
One alternative is to try this:
http://www.en.wampserver.com
Otherwise, make sure the php.ini file you are editing is the one pointed
to by the line:
Configuration File (php.ini) Path from the phpinfo generated file
Also, you could check any Apache log files to see if they output any
thanks a lot Brad...
i was updating the php.ini from PHP installation folder and not the one that
apache was reading.
so i replace the php.ini in my C:\Windows folder and in my Phpinfo page i
have a new part regarding MySQL.
it's ok now.
thanks a lot,
Alain
On 4/5/06, Brad Bonkoski [EMAIL
Hello.
I'm trying to connect to my MySQL server with mysql_connect(...). The server is
up and running, and I'm running Apache with PHP properly installed. The code:
$hleServer = mysql_connect($host, $user, $password)
or die(Error: Database. Error code: 1. Contact the web master!);
$host,
9 matches
Mail list logo