<?
// make sure you set the global variables in the mysql.php file
include "mysql.php";
$db = new mysql_access(MYSQL_DB,MYSQL_SERVER,MYSQL_USER,MYSQL_PASS);
// this returns a record set
$rsObj = RS("SELECT `name`,`description` FROM `people`");
while(!$rsObj->eof) { // while not at end of file (end of record set)
echo $rsObj->field['name']."<br> ".$rsObj->field['description']; // echo results
$rsObj->move_next(); // move to the next record
}
$rsObj->free(); // free the result set from memory
?>
|