here is my code, If select_array() does not find anything it will not return anything, foreach() requires an array. I rtied putting an @ inforn of $database-> but this didnt work (didnt think it would) and I cant put in fron of the foreach() I get a parse error. foreach($database->select_array('', 'orders, orders_product', $query) as $pos => $orders) { ... } -- Chris Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]