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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

PHP Notices!?!

  • 16-06-2007 3:14am
    #1
    Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭


    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, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


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


  • Registered Users, Registered Users 2 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, Registered Users 2 Posts: 1,991 ✭✭✭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, Registered Users 2 Posts: 14,761 ✭✭✭✭Winters


    http://ie.php.net/error_reporting

    It turns off error reporting for notices.


  • Registered Users, Registered Users 2 Posts: 6,602 ✭✭✭daymobrew


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


  • Advertisement
Advertisement