HELP! Pass query to varible |
[eluser]anakkampung[/eluser]
Hi, i wanna asking something.. if i have a mysql table like this ======================= id || NAME || Value || ======================= 1 || title || Welcome to My site 2 || admin || myemail@localhost.com 3 || etc1 || etcvalue1 ========================== and i want to make view in my views page with varible like $title, $admin, $etc1... how can i make the controllers, models and or library and views? thx
[eluser]davidbehler[/eluser]
This might need some adjustment but basically it goes like this: Controller in /application/controllers/welcome.php Code: class Welcome extends CI_Controller { Code: class Welcome_model extends CI_Model { Code: if(is_array($entries)) { Try reading the User Guide, that might make things clearer for you. |
Welcome Guest, Not a member yet? Register Sign In |