Jermaine,
Of course it's possible!
My example is querying a database containing album information. For our purposes, I am querying two fields, 'album_id' and 'album_name' in the table called 'ALBUMS'
//connect to your database
$db = mysql_connect ("host", "dbname", "dbpassword");
//select database
mysql_select_db("dbname", $db);
//sql statement here
$result = mysql_query("SELECT album_id, album_name FROM ALBUMS", $db) or die ("ERROR");
//begin a table to print values
print "<table>";
//loop through all the records
//in the database
//print a <tr> for each row
while ($row = mysql_fetch_array ($result))
{
print "<tr>
<td>$row[album_id]</td>
<td>$row[album_name]</td>
</tr>";
}
print "</table>";
//end the table
Hope this gets you started