ack!
this will set the status to active:
$a_db->status = 'active'
this will check to see if the status is active:
$a_db->status == 'active'
this will check the reverse:
$a_db->status != 'active'
does $a_db->query actually return data
$result = $a_db->query
or does it just set some internal varibale to the result
$a_db->query
print $a_db->status
print $a_db->result
look into using the [man]operators[/man] == and === as well as the functions [man]is_int/man and [man]is_array/man
they should either be of some use, or clarify things for you
$a_db=new filerec_db;
$results = $a_db->query("select * from name where status='single' order by id_number;");
if ( is_array($results) ) {
foreach ( $results as $result ) {
print $result;
}
} else if ( $results == 0 ) {
print "no results found";
}