It does appear that MYSQL has not been compiled in.  Execute the "phpinfo()"
function in a script to determine if MYSQL is in there.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 1:14 PM
To: [EMAIL PROTECTED]
Subject: Connection problems


Hi,

I try to connect to MySQL on a server (not my own, it's a shared server)
with the following PHP script:
<?php
mysql_connect("localhost", "food", "xxx") or die ("Could not connect");
?>

I always get the error:
"Fatal error: Call to undefined function: mysql_connect() ".

Normally this means that PHP is not correctly configured with MySql. My
service provider confirms that everything is working correctly. Other
(non-mysql) php scripts do work.

I also run the script phpinfo() and I don't find Mysql settings. I only find
in the configure command : "--with-mysql=shared".

Can please someone help?  Is my provider not telling the truth or must I
connect in a different way? Do I have to put some files or directories in my
root?

Best regards,
Erik



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to