[PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Ross
Hi This may be a daft question but I keep getting notices on undefined indexes Is there a way to define them prior to use similar to.. $global $myvariable; Can you show me examples of how to do this with cookies/arrays? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Tjoekbezoer van Damme
This may be a daft question but I keep getting notices on undefined indexes Is there a way to define them prior to use similar to.. $global $myvariable; Can you show me examples of how to do this with cookies/arrays? $array = array( ); and with a class you can use class Test { var

Re: [PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Thorsten Suckow-Homberg
This may be a daft question but I keep getting notices on undefined indexes I'm sorry to tell you, but this implies bad programming-practice. ;) First off: Leveling the error_reporting in the php-ini is NOT a good idea! Have you ever tested osCommerce with error_reporting set to E_ALL? You