RE: checkout.php...p 301 step17...just showing a work around that works at this stage of chp 10
could not get this line to return the id...$r = mysqli_query($dbc, 'SELECT @cid'); as a result there is no value to store in list($_SESSION['customer_id']) = mysqli_fetch_array($r);...(even reworked the stored procedure for add_customer..no luck
My work around:
I set $cid = mt_rand(100000,1000000000);
added customer_id column to customer's table....
changed the stored procedure=add_customer...to also include customer_id...and....VALUE.... $cid
changed setting session to: $_SESSION['customer_id'] = $cid;
this seems to be working at this stage of chp 10...