$query = "select id_code, title, author, html_hyperlink, entry_date, isbn, ddc, dewey_class, lcc,book_details, language, physical_description, discard_ind from books_main where $sort_by = '$id_code' order by $sort_by"; #### !$db->Sql($query) || Handle_Errors("$current_time couldn't do query: $query because " . $db->Error() ,1, $db->Error() . " $? $!",1);

while($db->FetchRow()) { @data = $db->DataHash(); $cycle_1 = $data[0];## physical desc field_name $cycle_2 = $data[1]; physical desc data $cycle_3 = $data[2];## language field name ###etc.....