Re: [PHP-DB] Fatal error: Call to unsupported or undefined function mysql_connect()
>Such patience! You waited nearly 7 whole minutes before reposting your >message! > >I don't run MySQL, so I'm not sure... but it looks like you probably don't >have MySQL support in your version of PHP. Try: > >phpinfo(); >?> Also, include some more code.. Or even better, check out some of the fine tutorials at www.devshed.com www.phpbuilder.com www.phpnewbie.com If you're still not successful in connecting we'll be glad to check your code. Bye, B. -- PHP Database 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-DB] Fatal error: Call to unsupported or undefined function mysql_connect()
Such patience! You waited nearly 7 whole minutes before reposting your message! I don't run MySQL, so I'm not sure... but it looks like you probably don't have MySQL support in your version of PHP. Try: ...and see if it says you do. At 12:44 PM 4/13/01 -0400, franky wrote: >I'm trying to connect to mySQL DB by Web page > and > >when I use mysql_connect() >this append: >Fatal error: Call to unsupported or undefined function mysql_connect() > >thanks! > >Franky >[EMAIL PROTECTED] > > > > >-- >PHP Database 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] - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 <[EMAIL PROTECTED]> - -- PHP Database 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-DB] Fatal error: Call to unsupported or undefined function mysql_connect()
Hello... Either the Username or Password or Database does not exist... Do this $db = mysql_connect(server, $user, $password) or die ("Sorry something is wrong"); $select = mysql_select_db("intranet", $db); or die ("Sorry something is wrong"); That way you can see if it connects and or if the Database does exist. You can also delete $select as well so it would read. mysql_select_db("intranet", $db); or die ("Sorry something is wrong"); That what I use That really might be the problem.. Learn how to put in debug stuff. It's easier to see your mistakesI know I had a bunch... Dan > -- > From: Patrick Schäfer > Sent: Wednesday, April 4, 2001 7:41 AM > To: PHP > Subject: [PHP-DB] Fatal error: Call to unsupported or undefined > function mysql_connect() > > Can anybody help me with this problem > > Fatal error: Call to unsupported or undefined function mysql_connect() > in > dbopen.php on line 7 > > $server = "localhost"; > $user = "dbuser"; > $password = "pass"; > $db = mysql_connect($server, $user, $password); --> This is line 7 of > my > script > $select = mysql_select_db("intranet", $db); > > Thanks, > Patrick > > > -- > PHP Database 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 Database 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]