Array oopsy-daisy

Hey, thanks for this quickstart to PEAR'S MDB2. I'm finding it very useful. One thing I noticed, though: in the execute_query function, line 16, the brackets in $results[] = $row put the entire $row array in the first entry of $results. If you drop the brackets, then it just copies the entire array, so then you don't have the awkward array within array ($results[][]). And would you do an isError on $resultset in the else statement in the same function?

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
We don't take kindly to automated nonsensible adverts around here.