I have this array
now I want to make depending on which number is in the database it should echo that
something like this.
$rd = mysql_query("select catg from intern where id=$update");
$catg = array(1 => 'car', 2 => 'intern', 3 => 'Tarif');
but so far it shows all the three options. but I want that it shows only the one that is in the data. e.g in the databas is the number "1"
so I want to echo "car".
how can I do that?