Jump to content

Having problems connecting to data base in php admin.


bebob

Recommended Posts

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");" 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.