this query matches with two fields in the database. How can i grab both of the names from the DB?
$product_q = mysql_query("SELECT * FROM `templates` WHERE `cat_id` = '$catid'") or die("<br/><br/>".mysql_error());
$product_array = mysql_fetch_array($product_q);
$product_name = $product_array['name']; //got the first results 'name'
$product_name2 = $product_name[1]; // attempted to get the 2nd 'name'.
You must loop through the results. Like so: