Chapter 15 Same problem, did you fix it?
The book says on page 509 that the table ecomm_temp_cart has two primary keys.
Primary keys cannot have duplicate entries, so this must be wrong. (if someone ordered two different things on the same session then the error is generated.)
I dumped both primary key instructions and went with the table on page 512 where no mention is made of primary keys.
However now (as int) the session is getting entered as a '0'. : (
Did you fix this?? if so can you tell me how?
|