php - Undefined variable in a template file -


i new here, please bear me.

am trying run project built using codeigniter.

the project online registration system,but getting undefined variable error in parts of page.

please if got time go on project , me out grateful.

here link whole system.

nb:it contains exported database already( database called 'orsdb' )

cheers!!!

https://drive.google.com/open?id=0byyo-aax6kh3cnjnrnbsnegwd1k

you should check every variable in ci view part before printing it, can use isset() check variable either define or not. example -

<?php echo isset($var) ? $var:""; ?> can use empty() function check variables.

another thing if variable undefined must check array contains data fetching database in ci controller , print array check required value exist or not. if not exists check sql query whether fetches required data or not.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -