I thought mysql_query was the way to go, instead of SHOW TABLES.
Would you mind helping a bit more? I understand that I'm supposed to learn how to do this for myself and not be handed the answer, but a bit more guidance would be appreciated. 🙂
I tried editing the code (see below) but I get teh famous "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/veter69/public_html/test/search.php on line 11"
<?
mysql_connect("localhost","usr","pw");
mysql_select_db("db");
$search=$_POST["search"];
$result = mysql_query("SELECT * FROM '$array' WHERE zip LIKE '%$search%' ORDER BY zip DESC");
$array = array(db_1, db_2);
while($row=mysql_fetch_array($result))
{
$zip=$r["zip"];
$contact=$r["contact"];
$address=$r["address"];
echo "$zip <br> $contact <br> $address <br>";
}
?>