i am attempting to get arrays from 2 tables, actualy get an array from 1 table (done) and convert its output into data from another table
here is where i am currently
$get_name = mysql_query("select id, cat_title from categories") or die(mysql_error());
$cat_name = mysql_fetch_array($get_name);
if ( $cats[cat_id] == $cat_name[id] )
{
$cat_desc = $cat_name[cat_title];
}
THIS returns all the same info for all instances
what i am trying to do
i have a list of category ID's 1, 2, 3, 4, 5... so on in my first table
i can pull that info fine, and print it
i have a list of category names that associate with those id's in a seperate table
so 1 = shoes 2 = blue 3 = sky.. so on
i am trying to get the php necessary to pull the names from the table, and replace the array of #'s with a new array of names
any help would be appreciated
thanks