PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm new to PHP, but trying to revive an old script. I keep getting the following error message related to cookies and do not understand what is wrong. The first is the error and the second is the acutal script that it refers to.
Notice: Undefined offset: 0 in /home/www/dentonwatch/functions.php on line 17
Notice: Undefined offset: 1 in /home/www/dentonwatch/functions.php on line 17
Notice: Undefined offset: 2 in /home/www/dentonwatch/functions.php on line 17
Notice: Uninitialized string offset: 12 in /home/www/dentonwatch/functions.php on line 15
when posting code in the forum. You'll need to research how arrays work to solve your problem. One method is to use isset() to check if a variable exists before you try to retrieve it's value, but this may not solve your problem because the code may expect that they are all set, which would mean there is an issue elsewhere in the code.