Can any one solve this ?
In my site i have three tables to store the login information of adminstrators and users
1. loginusers -> id, username, password, role, user_id, admin_id
2. user_details -> user_id, user_name, user_email and user_image
3. admin_details ->admin_id, admin_email and admin_image
The term role in loginusers table specifies weather login user is admin or user.
In my user_registration.php i have newuser form in which two field sets present , one with account information and another with personal information
when user clicks on submit button both the information is storing in tables loginuser and user_details
But the problem is with user_id in loginusers table. It should have the value to user_id in user_details How to perform this ?
Here is the code
PHP code in user_registration.php
HTML code in user_registration.php :