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

2001-04-02 Thread Chris Lee
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.

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

2001-04-02 Thread Lindsay Adams
$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" [EMAIL PROTECTED]