Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

PHP Notices!?!

  • 16-06-2007 04: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,762 ✭✭✭✭Winters


    http://ie.php.net/error_reporting

    It turns off error reporting for notices.


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


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


  • Advertisement
Advertisement