<?php
fbsql_connect($host, $user, $password);
$result = fbsql_db_query("database", "select user_id, fullname from table");
while ($row = fbsql_fetch_array($result)) {
echo "user_id: " . $row["user_id"] . "<br />\n";
echo "user_id: " . $row[0] . "<br />\n";
echo "fullname: " . $row["fullname"] . "<br />\n";
echo "fullname: " . $row[1] . "<br />\n";
}
fbsql_free_result($result);
?>