How do I get a DB table open easily? So far, I've been using a metod that sometimes works and some times doesn't, I just want to know the easy way to do it. My code of what I'm doing now is below:
$db = mysql_connect("localhost","root");
mysql_select_db("misc",$db);
$result = mysql_query("SELECT * FROM replace");
$row = mysql_fetch_array($result);
Thank you for your time.

