Can't help much without further details but here are the basic steps to working with a database. Perhaps spend some time learning the basics first.
PHP Code:
<?php
//********************************************************
//This connects our page to MySQL. Change to password and*
//if there is no password, take it out. *
//********************************************************
$connection = mysql_connect("localhost", "root", "password" );
if(!$connection)
{
die("Fail: " . mysql_error());
}
//********************************************************
//This selects the database that we will be working with.*
//Change dbname to your database name. *
//********************************************************
$dbselect = mysql_select_db("dbname", $connection);
if(!$dbselect)
{
die("Fail2: " . mysql_error());
}
?>
<html>
<head>
</head>
<body>
<?php
//********************************************************
//This pulls everything from tablename (change name) *
//********************************************************
$result = mysql_query("SELECT * FROM tablename", $connection );
if(!$result)
{
die("Fail3: " . mysql_error());
}
while($row = mysql_fetch_array($result))
{
echo $row['columnname'] . "</br>";
}
?>
</body>
</html>
<?php
mysql_close($connection);
?>