I have a web server that uses mysql-4.1.0/apache-2.4.6/php-4.3.4 on 
freebsd-5.1.
It has been working fine for the past few years, now all of a sudden today 
I get an undefined function error. This is from httpd-error.log -

 PHP Fatal error:  Call to undefined function:  mysql_connect() in 
/...<stuff>

This is the connection function I am using -

<? $conn=mysql_connect("localhost","user","") or die ("Could not connect 
to the server");
mysql_select_db("simradusa", $conn) or die ("Could not get the database"); 
?>

If I comment out the above function the pages will load but of course none 
of the database stuff will load. If I leave the lines with the connect 
function uncommented the page fails to load altogether.

As I mentioned - this just suddenly came about either today or over the 
weekend, I know it worked friday when I left the office. This particular 
machine has been up for 151 days 22 hours without a hiccup.

thanks for the help,
--
Chip Wiegand
Computer Services
Simrad, Inc
www.simradusa.com
[EMAIL PROTECTED]

"There is no reason anyone would want a computer in their home."
     --Ken Olson, president, chairman and founder of Digital Equipment 
Corporation, 1977
 (Then why do I have 8? Somebody help me!)

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to