Tuesday, April 08, 2014

How to Retrieve Record from Two Tables in PHP??


When you want to retrieve record from different table of same database in PHP then don’t worry.

Here our team give you solution for that problem.

You can easily retrieve record from two table using join query. There are three types of join available in SQL.


  1. Inner Join
  2. Outer Join
  3. Cross Join

For example if you want to retrieve record product from prd table and category from cat table then you can fire below query.

Select procuct.prd,category.cat from prd,cat where catid.prd=catid.cat
In above query prd and cat is table name

To retrieve record from two tables where clause is most important.

How to Retrieve Record from Two Tables in PHP??

Central Excise & Customs 19 Tax Assistant 2014 Recruitment
APPSC Specialist Doctors 2014 Recruitment appsc.gov.in






No comments:

Post a Comment