CodeIgniter Tutorial News section |
(07-27-2015, 09:48 AM)ciadmin Wrote: Step 2) SQL commands are run using a SQL tool, for instance phpmyadmin. They do not belong in your code (model or otherwise), as they are not PHP. Thanks ciadmin. I have read Connecting to your Database - Automatically Connecting. As CodeIgniter is doing most other things automatically, I would like to learn (and I guess most other students of CodeIgniter) the code so that my project can automatically connect to the database. I have already changed application/config/autoload.php to Code: $autoload['libraries'] = array('database', 'email', 'session'); but I guess there will be significant coding for it to happen. |
Welcome Guest, Not a member yet? Register Sign In |