Write about extracting an array or iterator over rows in a result set, in mysql php api chapter
Sync variable names
Fix code example error