|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
![]() I need a little help understanding this following function: count(mysql_fetch_array($query)); this will return a number (e.i. 12) that is larger than the actual ammount of items in the array (e.i. 8). Why does the count of the mysq_fetch_array() always return larger than the actual ammount of items ??? - Emil |
|
#2
|
|||
|
|||
|
"In addition to storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names as keys." PHP Manual
It's like combining the results of mysql_fetch_row and mysql_fetch_assoc. |
|
#3
|
||||
|
||||
|
What is it you're trying to determine?
perhaps the mysql_num_rows() function would pose more useful? http://ca.php.net/manual/en/function.mysql-num-rows.php |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > counting the mysql_fetch_array() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|