Really new to using PHP. Used Java in the past, and looking to getting into becoming a web developer.
Okay, so I have already hit several road blocks, but I managed to get past them all besides this. Using mysql, I type the command "show databases" I clearly see the database I created called "Test2". I have already established a successful connection to my server using the generic code:
"$link = mysql_connect($hostname,$username,$password);"
I get a successful connection. The problem is selecting the database I created. I keep getting this message " unable to find my database".
The code I am using is pretty straightforward.
$output = 'Unable to locate the test2 database.';
Like I said, I can see it using this command in mysql "show databases"., but I am unable to figure why I am not able to connect to it, and pull data from it. It really is frustrating.
Please can anyone show me how to do this correctly.