I am developing an android app for opencart user. I need cart information decoded and identify product id quantity etc from oc_customer table. I tried this
$sql = "SELECT cart FROM oc_customer WHERE email='an registered user email';";
$result = mysqli_query($con, $sql);
if (mysqli_num_rows($result) == 1) {
$row = mysqli_fetch_assoc($result);
var_dump(unserialize(base64_decode($row['cart'])));
}
I am getting this error
unserialize(): Error at offset 0 of 36 bytes
Can anyone give me an clue how can I get this done