insert session id to table

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm trying to insert a session id to a table but am not sure of the code can
anyone help.

Something like:

$result= MYSQL_QUERY("INSERT INTO cart (cartId)".
   "VALUES ('session_id()')");

Re: insert session id to table

 .oO(de Beers)

Quoted text here. Click to load it

For example:

$query = sprintf('INSERT INTO cart (cartId) VALUES ("%s")',
$result = mysql_query($query);


Site Timeline