This is a discussion on insert session id to table within the PHP Language forums, part of the PHP Programming Forums category; .oO(de Beers) >I'm trying to insert a session id to a table but am not sure of ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
.oO(de Beers)
>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()')"); For example: $query = sprintf('INSERT INTO cart (cartId) VALUES ("%s")', session_id()); $result = mysql_query($query); Micha |