mysql_select_db :: Please help

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
suz_1234
Forum Newbie
Posts: 24
Joined: Sat Sep 04, 2004 11:22 pm

mysql_select_db :: Please help

Post by suz_1234 »

Hello,

I am very new to the php world and really love to know more... i am trying to connect my html (embedded with php code ) to a mysql database....

This is only for learning purposes... The code connects to the database but it does not return true when i do this ::

$this->db = $db;
if(@mysql_select_db($this->db, $this->conn)) {
return true;
}

can someone please try to guide me thru this??
Thanks much
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

mysql_select_db($this->db, $this->conn) or die(mysql_error());
if you get past that line, you selected correctly.
Post Reply