note 20391 deleted from function.odbc-fetch-array by philip

From: Date: Sun, 21 Dec 2008 15:12:17 +0000
Subject: note 20391 deleted from function.odbc-fetch-array by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148413@lists.php.net to get a copy of this message
Note Submitter: michael dot fallise at chello dot be ---- Just a note about the odbc_fetch_array function of Martin (above). The function actually works fine except when your resultset is empty (where $rs_assoc is not defined). To avoid this just define $rs_assoc as an array before the foreach like this : $rs_assoc = Array(); That should do the trick

« previous php.notes (#148413) next »