Forum Moderators: coopster
I have a table named “aaa” with among all the cols:
name, state, city, phone, experience
Also a table named “rating”
with among a few cols: rate and phone
rate and phone are in both tables but none table has the same name of rows!
“rate” has no phone number dupe and no dupe rows
(but for a good reason dupe phone needs to exist in “aaa”
From table “aaa” I need to query name, state, city phone, experience
From table “rating” I need to query col “rate” where phone= phone from “aaa”
Then I will do a numrows to display (with pagination) all
Name, state, city, experience, phone and that rating from the other table
$start_limit = 0;
$end_limit = 10;
$query = "
SELECT a.name,a.state,a.city,a.experience,a.phone,r.rate
FROM aaa a,rating r
WHERE r.phone = a.phone
LIMIT {$start_limit},{$end_limit};
";