Hi all,
Are you able to insert the value of say
$_SESSION['customer'][1]
into a mySQL database.
I'm currently using the following code:
$result = mysql_query("insert into customer(customer_id, cookie_id, customer_first_name)
values ('NULL', '$cart_id', '$_SESSION['customer'][1]')");
....but to no avail.
Can anyone tell me where i might be going wrong or will i have to assign a value to each like:
$customer_name = $_SESSION['customer'][1];
Cheers,
chrima