You should be having the login functionality in your project so while login to the website create a session for the user and save user name and his Id in the session so when user inserts the data you have to insert his UserId in the same table.
Now create the table for UserLogin and create a table for products add a UserId column in product table which will reference Primary Key of UserLogin table.
If you have any problem then reply..
Thank You.