Hey All,
Im having some problems with a script of mine.
i have one MySQL table that has the value of an account i.e 'Free Account' = $0, 'Basic Account' = $300 .. then i have another table with the account id which would be 'Free Account' or 'Basic Account' and also a paid which is 'Yes' and 'No'
How could i combine 2 tables into one search.
Here is the table layout
| packages | advertisers |
| id | plan |
| price | paid |
| | id |
| | signup_date |
| | venue_name |
The ID field in the packages table and the PLAN field in the advertisers table are the ones that have the same values.
SELECT * FROM both tables where packages.id = advertisers.plan AND paid = YES
How can i link the two tables and how can there be 2 id fields with different values if that makes any sense.
Cheers