Jump to content

HELP!! Undefined Offset!


ebiz

Recommended Posts

HI

 

I've been having this problem for a while now and cannot figure out what is causing the problem.

I've designed a website that sells dvds using PHP. I keep getting an error saying there is an undefined offset in one of the lines of my code. Here is the line (30):

 

list($customer_firstname, $customer_lastname, $code , $description, $price) = split('\|',$theline);

 

and here are the error messages if it helps:

 

Notice: Undefined offset: 4 in /nas/students/c/cdbaker/unix/public_html/ebassignment/listpurchases.php on line 30

 

Notice: Undefined offset: 3 in /nas/students/c/cdbaker/unix/public_html/ebassignment/listpurchases.php on line 30

 

Notice: Undefined offset: 2 in /nas/students/c/cdbaker/unix/public_html/ebassignment/listpurchases.php on line 30

10.99 £

 

ANY HELP WOULD BE GREATLY APPRECIATED!!! Thanks

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/136386-help-undefined-offset/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.