Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help php MySql link

0 views
Skip to first unread message

George Nicolae

unread,
May 3, 2002, 2:35:30 PM5/3/02
to php-g...@lists.php.net
$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" <tag...@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";
>
>


Rodrigo

unread,
May 3, 2002, 2:20:05 PM5/3/02
to php-g...@lists.php.net
0 new messages