Hi-
thanks for your help, but I think I'm connected to the database.
Here is a sample test page which is returning a different error, a parse error on line 23. It should return a list of cities. Any other ideas?
<?php
// Default page display
// Connect to the database server
$dbcnx = @mysql_connect("localhost", "username", "password");
if (!$dbcnx) {
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
// Select the db_test database
if (! @mysql_select_db("db_test") ) {
echo( "<p>Unable to locate the " .
"database at this time.</p>" );
exit();
}
$sql = mysql_query("SELECT * FROM employers where active = '1' ");
// execute SQL query and get result
$result = mysql_query($sql)
while ($row = mysql_fetch_array($result) ) {
echo (" " . $row["city] . " ");
}
?>