View Single Post
Old 12-09-2012, 08:24 PM   PM User | #2
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
Quote:
$query = "SELECT * FROM shop_tshirts WHERE shop_id = '429942'";
$zquery = "SELECT * FROM shop_tshirts WHERE shop_id = '266497' AND design_id = '$designid'";
for first two
Code:
select * from shop_tshirts t left join shop_tshirts t1
on t.design_id = t1.design_id
where t.shop_id = 429942
If queries as it si now slow, you don't have indexes on key fields.
__________________
Found a flower or bug and don't know what it is ?
agrozoo.net galery
if you don't spot search button at once, there is search form:
agrozoo.net galery search
BubikolRamios is offline   Reply With Quote