Skip to main content
Known Participant
September 4, 2006
Question

Store an User ID

  • September 4, 2006
  • 1 reply
  • 258 views
The follwing code stores only product id and its quantity through URL parameters. I need even the user id must be stored........please help with this.

thanks,

prashi
This topic has been closed for replies.

1 reply

September 4, 2006
i would store the user id in a session variable:

<?php
session_start();
$_SESSION['user_id']='user_id';
?>
prashi123Author
Known Participant
September 5, 2006
But i need the user_id to get stored in a table where product_id and product quantity gets stored. Any solutions .........