Edit the following exmple as per your requirment..
populate.php3
<?php
$con=mysql_connect (localhost,username,password);
//connect to the database...
mysql_select_db("databasename",$con);
//select your database..
$result=mysql_query("select * from tablename",$con);
//get all the datas from the table
if ($row = mysql_fetch_array($result)) {
//loop through all your records..
do {
print $row["field1"];
print $row["field2"];
print $row["field3"];
print $row["field4"];
print $row["field5"];
}while($row = mysql_fetch_array($result));
}else{
// no record for your query...
print "No Records!!";
}
?>
------------------
SR -
webshiju.com
"The fear of the LORD is the beginning of knowledge..."
[This message has been edited by Shiju Rajan (edited June 29, 2000).]