[Solved] how can i remove undefined error while creating a shopping cart?


From your comment, your array structure looks like this:

Array ( [0] => 5 [cat_id] => 5 [1] => Ear Phones [cat_title] => Ear Phones ) 

I think you’ve made a typo, you probably meant to do this

$cat_title = $row_cats['cat_title'];

instead, you did this by mistake:

$cat_title = $row_cats['title'];

solved how can i remove undefined error while creating a shopping cart?