Posted by Steve on 04/20/07 04:30
| it is obvious to me only because i have programmed it already...here's a
| static method of my db class:
oops...not so obvious. i mis-read how you were setting $output. it looks
like it should work fine.
are you expecting the query to return only a single row (by the nature of
the query), yet are confused as to why you are still getting an array? your
function always returns an array regardless of row count. you could just use
the $numrows and if one, return the single row...all others would still be
arrays of label/value pairs as it should be.
i don't know...it's late. :)
Navigation:
[Reply to this message]
|