Jump to content


This topic is now archived and is closed to further replies.


Query Several Databases From Search Field

Recommended Posts



$result = mysql_query("SELECT * FROM my_table WHERE zip LIKE '%$search%'");

//grab all the content
   echo "$zip <br> $contact <br> $address <br>";
This is a simple thing to more advanced users. I need to query more than just "my_table" to get the results; the other tables I need to query hold the exact same info as "my_table". I tried delimiting with comas, as in "my_table, my_othertable, my_moretable", but that brought up a SQL error.

Thanks a bunch in advance,

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.