HI,
when i run the following query it takes aprox 3+min for the page to load:
$query = "SELECT c.cust_id, c.f_name, c.l_name, DATE_FORMAT(c.signup_date, '%m-%d-%y') AS s_date, d.company, d.email FROM customer c LEFT JOIN customer_detail d ON c.cust_id=d.cust_id where company like '".$lletter."%' AND is_active = 'Y' order by company";
but when i take out the join and refrence only one table with the following query it takes about 3 sec:
$query = "SELECT cust_id, company, email FROM customer_detail WHERE company LIKE '".$lletter."%' ORDER BY company";
I need info from both tables so is there a better way to do this...
thanks