Re: Help php MySql link

From: Date: Fri, 03 May 2002 18:35:30 +0000
Subject: Re: Help php MySql link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95952@lists.php.net to get a copy of this message
$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" <tagzero@tagzero.com> wrote in message 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"; > >

« previous php.general (#95952) next »