mysql_connect Not a defined function?
Posted: Wed Jun 26, 2002 11:11 pm
I have one Computer functioning as a server set up running Red Hat 7.3 with Apache, PHP4, and the latest version of mySQL installed on it. It parses PHP files fine but chokes whenever I issue a mysql_connect command with a fatal error saying it is not a defined function. My code is similar to:
$connection = mysql_connect(blahblahblah);
I have already set up a user/password for mySQL and can connect to it fine on my local machine. As far as I know, the mySQL_connect function is natively integrated into the PHP language so I shouldn't have to add anything else. This code works just fine on a hosted account I have, I just can't get it to work on my own personal server. Does anyone have any ideas?
$connection = mysql_connect(blahblahblah);
I have already set up a user/password for mySQL and can connect to it fine on my local machine. As far as I know, the mySQL_connect function is natively integrated into the PHP language so I shouldn't have to add anything else. This code works just fine on a hosted account I have, I just can't get it to work on my own personal server. Does anyone have any ideas?