note 6909 deleted from odbc_result by ronabop
| From: | ronabop@php.net | Date: | Sat, 26 Aug 2000 06:35:39 +0000 |
| Subject: | note 6909 deleted from odbc_result by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3382@lists.php.net to get a copy of this message | ||
Actually, I stand corrected. The error in ODBC_result() is even more insidious than I thought. (I
tried adjusting to have 32 fields, with the same bug.) It generates an error "Warning: Field
index is larger than the number of fields in your-script.php on line 70"
ANY time you try to retrieve the last field of a sufficiently large record. What worked for me was
just to write the last column twice... that way, the query has 34 fields, but the last two are the
same. You know it'll crash if you ask for #34, but just use ODBC_result(current_query, 33) and
you won't have a problem. Good luck!
<BR><BR>
-D