I'm getting an error
Undefined offset: 1
for the line $name=$myarray[1];
even though when I print both $name and $myarray[1] they are as I would expect. Is this something I need to worry about, as I've set up PHP to show all errors, for debugging.
Undefined offset basically means that you are referancing an array at a position that hasn't been created. This is a problem because if you haven't defined that array element then the system is just going to give you whatever data it finds in that particular memory location and it probalby wont be what you are looking for.