Logging in using single form from two different tables?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arunm0089
Forum Newbie
Posts: 1
Joined: Thu Aug 25, 2011 4:05 am

Logging in using single form from two different tables?

Post by arunm0089 »

I am having a log in page(login-form.php) and i need to use the same page to fetch user details from two different tables namely tb_premium_user and tb_business_user, how can i implement this effectively, can somebody help me in this.I am really looking forward for some reliable suggestions.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Logging in using single form from two different tables?

Post by Christopher »

User the SQL JOIN to fetch data from multiple table. See the manual for your database.
(#10850)
Post Reply