jimfog Posted April 16, 2012 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now