Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP Notices!?!

Options
  • 16-06-2007 4:14am
    #1
    Registered Users Posts: 1,987 ✭✭✭


    I've tried everything to get rid of this error, i've tried [PHP]isset()[/PHP] but with no luck, any ideas how i can get rid of this notice?
    Notice: Undefined index: tc in C:\Apache\htdocs\test_site\index.php on line 1098
    


Comments

  • Registered Users Posts: 3,594 ✭✭✭forbairt


    A notice is not a error .... just a warning ... go into your php.ini and turn notices off :)


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    If you don't want to go messing with you php.ini file or can't get access to it ..

    At the start of your script something like
    error_reporting(E_ALL ^ E_NOTICE);
    
    should help


  • Registered Users Posts: 1,987 ✭✭✭Ziycon


    forbairt wrote:
    If you don't want to go messing with you php.ini file or can't get access to it ..

    At the start of your script something like
    error_reporting(E_ALL ^ E_NOTICE);
    
    should help

    Perfect, your a ledge man! Appreciated!

    What exactly does that line do?


  • Registered Users Posts: 14,761 ✭✭✭✭Winters


    http://ie.php.net/error_reporting

    It turns off error reporting for notices.


  • Registered Users Posts: 6,511 ✭✭✭daymobrew


    It would be better not to generate the notice. Maybe the array_key_exists() function will help.


  • Advertisement
Advertisement