• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
general database question

#1
[eluser]jdfwarrior[/eluser]
I am having to go back and work on an old project of mine (pre-codeigniter booo). While looking through it and going through the code I got to wondering something. Are there any advantages/disadvantages to the different PHP MySQL fetch commands? Like, would there be any reason for using fetch_assoc instead of fetch_array and so on? Just wondering.. Hoping I can talk this customer into letting me do a little redesign and start using CodeIgniter. Pray for me Smile

#2
[eluser]jalalski[/eluser]
You would use fetch_assoc if you need the keys, you would use fetch_array if you only need the values.
It really depends on what you are going to do with the results of the fetch.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.