You need to state what you need help with more clearly in the future.
It would also Really help if you specified What programing language you're using to develop this application.
I'm assuming that you are using PHP... just because the PHP/MySql package is so sweet.
So here is a code snippet showing you how to connect to a database and retrieve data:
-
<?php
-
$con = mysql_connect("localhost","peter","abc123");
-
if (!$con)
-
{
-
die('Could not connect: ' . mysql_error());
-
}
-
-
mysql_select_db("my_db", $con);
-
-
$result = mysql_query("SELECT * FROM Persons");
-
-
while($row = mysql_fetch_array($result))
-
{
-
echo $row['FirstName'] . " " . $row['LastName'];
-
echo "<br />";
-
}
-
-
mysql_close($con);
-
?>
-Frinny