# \[help\] Query from two tables?

**URL:** <https://forum.kirupa.com/t/help-query-from-two-tables/250659>\
**Category:** programming\
**Created:** [January 31, 2008, 2:44pm UTC](https://forum.kirupa.com/t/help-query-from-two-tables/250659 "2008-01-31T14:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjj](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@cjj](https://forum.kirupa.com/u/cjj)\
**Post date:** [January 31, 2008, 2:44pm UTC](https://forum.kirupa.com/t/help-query-from-two-tables/250659/1 "2008-01-31T14:44:38Z")

</div>

I’m wondering how to go about this? I’m not sure if its even possible or if I need to use a join or something?

Im using a search facility on my page. When a user types something into the search box I need it to search inside two separate tables. Can this be done?

The results for the query will be run inside a while statement.

For the one table I will need to find users names and the other one picture titles.

I would really appreciate any help?
