Php Error - No Database Selected

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tyler.pomroy
Forum Newbie
Posts: 8
Joined: Mon Sep 29, 2008 1:49 pm

Re: Php Error - No Database Selected

Post by tyler.pomroy »

this is the right way to connect mysql sever.

mysql_connect("localhost","username","password") or die(mysql_error());
mysql_select_db("database");

tyler
Post Reply