Thread: count question
View Single Post
Old 02-15-2013, 11:26 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
There are two items since you have used fetch_array. Fetch array by default will always return MYSQLI_BOTH which is the same as MYSQLI_NUM | MYSQLI_ASSOC unless you have specified otherwise. Therefore you get both numerical offset and associative offset.
fetch_row is reliable. It will always be 0 corresponding to the first property in the returned resultset record.
__________________
PHP Code:
header('HTTP/1.1 420 Enhance Your Calm'); 
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
durangod (02-16-2013)