$db = ("localhost","databasename","databasepassword"); mysql_select_db("your name?",$db); $result = mysql_query("select column1, column2 from domain", $db); while ($myrow=mysql_fetch_array($result)) echo $myrow["column1"]." - ".$myrow["column2"]."<br>";
-- Best regards, George Nicolae IT Manager ___________________ PaginiWeb.com - Professional Web Design www.PaginiWeb.com "Rodrigo" <[EMAIL PROTECTED]> wrote in message 000401c1f2cf$28b83f00$d86bbbac@rodirgo">news:000401c1f2cf$28b83f00$d86bbbac@rodirgo... > Hi guys, what I need is how to make the link between the php and the > Database. > > Is this the code for it? ro something like that? Help me guys... > > If you could tell me what each command line do I'd appreciate it, cause > I got almost all from a friend, but is incomplete. > > The code follows this message. > > > $db = ("localhost","databasename","databasepassword"); > mysql_select_db("your name?",$db); > $result = mysql_query("select column1, column2 from domain", $db); > echo "column 1 - column 2"; > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php