Hi,

<?php

$dbhost = "yourhost";
$dbuser = "youruser";
$dbpass = "yourpassword";
$dbname = "name_of_DB";

$connection = mysql_connect("$dbhost, $dbuser, $dbpass") or die ("can't
connect");
$database = myslq_select_db($dbname) or die ("can't select DB");

$result = mysql_query("SELECT * FROM yourtable");

while (list($date, $author, $subject, $contents) = mysql_fetch_row($result))
{

        code to display the stuff you want referencing to the vars with the
given
        vars in the list(...)

}

Johannes

""Bigbosss"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9aket9$i1t$[EMAIL PROTECTED]">news:9aket9$i1t$[EMAIL PROTECTED]...
Hi,

I'm  a beginner in PHP dev, and i have find how to connect a DB and select a
TABLE. But i search a example to ahve the numbre of ligne in a rows on my
table.

my table is :

date
author
subject
contents



i want to print each rows with HTML tag like this :

date            author
subject
contents


can u help me please ??   thx




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to