Why not use ODBC with a simple SQL query ? ODBC is a general solution, so you could easily switch to a different type of database.
e.g.
// NOTE: DSN, SQL_USERNAME, SQL_PASSWORD are set using define(),
// in some PHP source file used to keep definitions
$conn = odbc_connect( DSN, SQL_USERNAME, SQL_PASSWORD );
$query = "SELECT storeNumber FROM stores" ;
$result = odbc_exec($conn,"$query")
or die("problems in SQL query execution<BR>$query");
$num = odbc_num_rows($result);
echo "
<TABLE>
<TR><TD>Store Number</TD></TR>
for ( $i=1 ; $i <= $num ; $i++ )
{
$row = odbc_fetch_row($result,$i);
$storeNumber = odbc_result($result,"storeNumber");
echo "<TR><TD>$storeNumber</TD></TR>" ;
}
echo "
</TABLE>" ;
Hope this helps
Yaron