bebob Posted July 8, 2010 Share Posted July 8, 2010 I have no problems connecting to the data base. It connects to the Mysql but not the data base I built in php admin. Without the @mysql_select_db($database) i can connect the mysql. I've tried many tutorials and they seem different and don't work. Can someone please help. Newbi trying to learn. <?php $link = mysql_connect('willie.com', 'joe16', 'bubba'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; ("@mysql_select_db($database) or die( "Unable to select database");" ?> Link to comment https://forums.phpfreaks.com/topic/207136-having-problems-connecting-to-data-base-in-php-admin/ Share on other sites More sharing options...
bh Posted July 8, 2010 Share Posted July 8, 2010 Where did you define $database variable? Link to comment https://forums.phpfreaks.com/topic/207136-having-problems-connecting-to-data-base-in-php-admin/#findComment-1083032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.