• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
have problem to re-write this code to ci script

[eluser]Colin Williams[/eluser]
Quote:i say i reviewed the guide but the guide dosen’t have the function mysql_fetch_assoc in the librearies

There are LOTS of PHP functions that the CI User Guide doesn't document. In fact, it doesn't really document ANY PHP functions. Here's a secret: You can use any PHP function available to you in CI.

You could very well use the MySQL function in a model to do what you want, but I think a lot of us would agree that using CI's Active Record is much more elegant and scalable. So, as previously mentioned, head to the user guide, go to the Database section, read every page, and you will see how AR procedures match those you would do with MySQL functions.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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