There are two table from which i want to get value
1. heads
2.subheads
The field name in heads table is:
id, head_name.
the field name in subheads table is:
id,subhead_name .
i want to get value from these two table when the value mean id is '1'
i wrote the query something like this
'
1. heads
2.subheads
The field name in heads table is:
id, head_name.
the field name in subheads table is:
id,subhead_name .
i want to get value from these two table when the value mean id is '1'
i wrote the query something like this
Code:
SELECT `head_name`,`subhead_name` FROM `heads`,`subheads` WHERE `head_name.id` = '1' AND `subhead_name` = '1
Comment