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

From: Date: Mon, 02 Apr 2001 17:18:22 +0000
Subject: Re: how do I turn off error checking in foreach() ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46656@lists.php.net to get a copy of this message
$database is the object. Select_array() is the function in the class, so... Try putting it in front of select_array() I don't know if this will work, but this is where I would think to put it. $database->@select_array() Let me know if it works. On 4/2/01 8:15 AM, "Chris Lee" <lee@mediawaveonline.com> wrote: > 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) > { > ... > } >

« previous php.general (#46656) next »