how do I turn off error checking in foreach() ?

From: Date: Mon, 02 Apr 2001 15:15:06 +0000
Subject: how do I turn off error checking in foreach() ?
Groups: php.general 
Request: Send a blank email to php-general+get-46653@lists.php.net to get a copy of this message
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 lee@mediawaveonline.com

« previous php.general (#46653) next »