simple query question
Posted: Wed Jan 09, 2008 7:55 am
I have a query where I want to get the value of address_id from a table. address_id is not the primary_key and is not unique.
A query like above will result in values like so:
1
12
45
12
25
25
45
Is it possible to get the values only once. Like so:
1
12
45
25
Thx.
Code: Select all
$sql = "SELECT address_id FROM thistable WHERE date > '$searchDate'";1
12
45
12
25
25
45
Is it possible to get the values only once. Like so:
1
12
45
25
Thx.