Dynamic pages with current user ID

Hi all! This might be a silly question,
I have dynamic pages related to a member. When a member first logs into my website, he cant access any of this pages because he hasn’t got an entry on my DB “Members”. Is there any code I can use to create an entry on a specific DB?

I have basically a menu, with links to dynamic pages, that display the pages according to the current user ID. Because the member is new, he hasn’t got any entry, which is not then allowing me to display any page at all. I have a separate page where members can enter their details (to create an entry), but this is creating an entry that has a different ID than the user ID, and so, the pages are still not opening

Any tips? I am really confused with this -.-

Hi,
Check out this article:

Good luck!
Roi.

I have read that page many times before, and it doesn’t solve this problem mentioned above

The article does solve your problem, you just need to apply logic to your setup.

You have to remove other ways of registering and limit the person to only register in that page in order to get the registration saved in your database. This means adding a line to your code that hides any menu or direct buttons to your members only pages. The only way to access these should be after they login through your login/registration.

If not, choose a different variable in the URL to generate your pages instead of using the ID.

Only you can fix the logic of your site. So think of all the ways people can access the dynamic ID dependent pages and funnel the traffic through your code so it avoids having mismatches and errors.