RE: [PHP] Connection error
Try this... You need to set a variable for the connection. Also you might be careful when sending examples of your code as you have given everyone on this list your username/password to your database. "; exit; } ?> -Original Message- From: Shaohua Qu [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 4:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Connection error Hi, When I run the code: I got error message: Fatal error: Call to unsupported or undefined function mysql_connect() in ... HELP! Thanks in advance, Sharon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Connection error
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Fri, 2 Mar 2001 15:59:55 -0500 > > Hi, > > When I run the code: > >mysql_connect ("LOCALHOST","webmaster2","hironsc0"); > ?> > > I got error message: > Fatal error: Call to unsupported or undefined function mysql_connect() in English translation: You have not compiled MySQL support into PHP. You will need to re-compile, or find a different RPM. If you compile it yourself, be sure to add with-mysql to the ./configure command. If this is on a Windows host, look in php.ini and uncomment the line that loads the MySQL DLL. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]