How to get matched rows data and also different data please help me its very urgent to me