Code for auto register

how to create multiple tables in one db…i created db using PHP code…now i created db and admin table…but i dont know how to give connection to users table

Need a bit more information to be able to offer any useful help. Can’t you just duplicate what you did to create the admin table (obviously with changes) to create the other tables you need? I suspect I’ve misunderstood the question.

i need code like cms register and login in core php…

How did you create the first two tables?

I think I see - you’re looking for some sample code to handle user registration and user login functions.

I don’t have any to post here, but then I suspect you won’t get that - the forum is more about assisting with specific issues in code you’ve written rather than just requesting complete code. There is a lot of sample code around, though, and it’s a common project to be done as an article.