Welcome back.
Now, what we need to do is that we need to get the user I.D. in the registration page and also in the
place order.
So in the registration page, upon registering after the user registers a new account, after the user
creates a new account, we need to get their ID.
The idea that was given by the database, which is going to be unique and it's very, very important.
So to get that ID we can use, remember here in the place order, we have used this for this variable,
which is this member variable which is in serious ID to get the ID that was inserted, which is the
user ID.
So here in this case, it's going to be here after after we make sure that the account has been created,
we can say we can see user ID is equal to and then statement is the empty.
And then.
Insert it and then we need to insert the user ID in decision.
So we need to say session.
And then user underscore I.D. and here, here we can say user.
In the login page.
We already have the user I.D. We already got the user I.D. upon logging the user name and the place
order.
Remember in the in the place order, I have said here that the user ID is going to be one just for it,
for testing and just for just for not leaving it empty because we couldn't leave that empty.
Now it is sort of saying, one, I'm going to get the user ID from this session.
I'm going to say session and then user underscore ID.
User underscore.
And that's it.
And make sure that the key is user underscore.
And here, make sure again that the key is user underscore it.
And here, make sure that the key is user underscore.
Because otherwise there will be a conflict, conflict between IDs and between keys and you will not
be able to get the user I.D. here.
We also have I think we we have here the user I.D., which is this user ID, which is which is this
one.
So we don't have to change anything else.
That's it.
And everything is perfect.