Welcome Guest, Not a member yet? Register   Sign In
notice driving me crazy
#4

[eluser]BrianDHall[/eluser]
Probably a silly question as I've never had a use for extract(), but why use it at all? $data['poll']['id'] is much clearer, as originally when I read over your code I couldn't figure out where $id was coming from.

I would try a var_dump($data['poll']) to see what is up with the structure, it is likely that it is not the structure you are expecting.

Generally extract() makes things harder to debug.

And in your index.php, check to see that you have this:

Code:
/*
|---------------------------------------------------------------
| PHP ERROR REPORTING LEVEL
|---------------------------------------------------------------
|
| By default CI runs with error reporting set to ALL.  For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit:  http://www.php.net/error_reporting
|
*/
    error_reporting(E_ALL);

It will show notices in localhost, so you don't have to wait until you upload to see notices and warnings and such.


Messages In This Thread
notice driving me crazy - by El Forum - 12-15-2009, 07:30 PM
notice driving me crazy - by El Forum - 12-15-2009, 11:50 PM
notice driving me crazy - by El Forum - 12-16-2009, 04:39 AM
notice driving me crazy - by El Forum - 12-16-2009, 08:59 AM
notice driving me crazy - by El Forum - 12-16-2009, 10:50 AM
notice driving me crazy - by El Forum - 12-16-2009, 07:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB