jimfog Posted April 16, 2012 Share Posted April 16, 2012 What exactly is the difference between these 2(fetch_assoc, fetch_array) mysql functions? Both pass the row items of a database in an array, but where exactly the one differs from the other? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 16, 2012 Share Posted April 16, 2012 mysql_fetch_assoc returns an associative array, mysql_fetch_array returns an array in one of several formats depending on which options were passed. http://www.php.net/manual/en/function.mysql-fetch-array.php Link to comment Share on other sites More sharing options...
es131245 Posted April 17, 2012 Share Posted April 17, 2012 print_r both of them and see the diference Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.