while($row = $result_set->next_record()){ echo $row["id"]. " ".$row["name"]. " ".$row["email"]. "
"; }
$result_set->next_record(); echo $result_set->f("name");In this example, we move to the next record in the result set and then retrieve the value for the "name" field using the f function. The package/library that includes the next_record function depends on the specific database driver being used. For example, the next_record function is included in the DB_DataObject package for using it with MySQL databases in PHP.