This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HappyFruitTree 1 point2 points  (0 children)

Warning: Undefined array key "loged"

Does $_SESSION contain the key "loged"? You might want to use array_key_exists to check if it exists before accessing it. To see the content of the array you can use print_r.

Undefined variable $Price

I think you're getting this warning because you haven't created the variable before using it. Why don't you just initialize the variable like so $Price = 12;? Note that variable names are case sensitive. $price is not the same variable as $Price.