Code Comments
Programming Forum and web based access to our favorite programming groups.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()')");
Post Follow-up to this messageHowdy,
Try adding ". and ." around your function call. Also, mysql_query() should
be lower case.
Like: (untested code)
$result=mysql_query("INSERT INTO cart (cartId) VALUES
('".session_id()."')";);
(Of course, you probably need to call mysql_connect() first.)
Hope that helps!
Have a great day!
Ben :-)
Ben Gribaudo - Baltimore, MD - www.bengribaudo.com
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life."
John 3:16
"de Beers" <fdgdf@yahoo.ca> wrote in message
news:S8NUc.15014$ZI1.701325@news20.bellglobal.com...
> 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()')");
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.