query from two tables
| From: | Ivan Balazs | Date: | Mon, 04 Feb 2002 12:26:23 +0000 |
| Subject: | query from two tables | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-16482@lists.php.net to get a copy of this message | ||
Hi!
The situation: I have 2 tables in an adverising site. In one table, i have
the cities used by advertisers, and in the other there are the ads.This ad
table has a field which refers to the id of the city in that table.
The problem: what mysql method should i use if i want to order the query
by cities? I have tried multiple selection like select ads.*, cities.*
from ads, cities , but it returns a nonsense.
Any help would be appreciated
Balazs