Hi
I'm trying figure why I'm getting this error Undefined offset: 1.
I'm practicing with list() function and with a explode() function.
When I ran the code it kept mention this error:
Undefined offset: 1
The line is this:
list($bagsize, $candyprice)=explode("#", $_GET["size"]);
The list is not an array. It's on the database:
$bagsize = $_GET["size"]);
$candyprice = $_GET["price"]);
But the thing is that I don't understand why is it offset.
I google it and read a few threads and find out it varies.
I just want to prevent this error from happening again.
Any Suggestions and explanations will help. I appreciate it. Thanks!