Thanks for the reply.
The code is as follows
Code:
@mysql_connect("localhost", "user", "pass", true)
or die("Could not connect to database.");
$town="Dublin";
$result = mysql_query("SELECT db1.tb1.Logo, db1.tb1.Name, db1.tb1.Town, db1.tb1.Description, db1.tb1.Webpage, db2.tb2.Clip, db2.tb2.Name, db2.tb2.Town, db2.tb2.Description, db2.tb2.Website FROM db1.tb1, db2.tb2 where db1.tb1.town = db2.tb2.town and db1.tb1.town LIKE '$town'" );
if (mysql_num_rows($result)==0) {
echo "<p class='listing'>Sorry there is currently no listings for " . $town . ".</p>";
} else {
echo "<table class='listing'>";
while ($row = mysql_fetch_array($result))
{
echo "<tr>";
Many Thanks
Bookmarks