Well, I'm back. For some reason the following database call is giving me problems:
SELECT a.lname, a.fname, a.town,, a.cust_id, b.email FROM table1 AS a, table2 AS b WHERE a.lname LIKE '$var' OR a.fname LIKE '$var' ORDER BY a.lname
There are three users and this call returns the same user three times but with the three different cust_ids. Like this:
Doe John San Diego 534 john.doe@wherever.com
Doe John New York 236 john.doe@wherever.com
Doe John Scottsdale 871 john.doe@wherever.com
Both tables have a cust_id column. If I limit the call like this to one table it works:
SELECT lname, fname, town, cust_id, FROM table1 WHERE lname LIKE '$var' OR fname LIKE '$var' ORDER BY lname
Any ideas what I'm messing up? Thanks in advance.