Hi all,
I want to get two values with one query:
the country_name that belongs to country_id_1 and,
the country_name that belongs to country_id_2.
I used this query:
(SELECT name FROM countries WHERE country_id = '1')
UNION
(SELECT name FROM countries WHERE country_id = '2')
But it didn't work with mysql_fetch_row / mysql_fetch_array.
Does anyone know how to do this?
Thanking you in advance,
Ruben.
I want to get two values with one query:
the country_name that belongs to country_id_1 and,
the country_name that belongs to country_id_2.
I used this query:
(SELECT name FROM countries WHERE country_id = '1')
UNION
(SELECT name FROM countries WHERE country_id = '2')
But it didn't work with mysql_fetch_row / mysql_fetch_array.
Does anyone know how to do this?
Thanking you in advance,
Ruben.