file_upath; $Category_id=$fetch_product->category_id; $Brand_id=$fetch_product->scategory_id; foreach($fetch_product as $K1=>$V1) $$K1 = $V1; //fetch category name $get_category = mysql_query("select * from subcategory where id='".$Category_id."'"); $total_category = mysql_num_rows($get_category); $fetch_category = mysql_fetch_array($get_category); $pcategory_name = $fetch_category['category_name']; //fetch subcategory name $get_subcategory = mysql_query("select * from subcategory where id='".$Brand_id."'"); $total_subcategory = mysql_num_rows($get_subcategory); $fetch_subcategory = mysql_fetch_array($get_subcategory); $subcategory_name = $fetch_subcategory['category_name']; //function for removing tags and slashes function remove_slash_other_tags($text) { $stripslashes_result=stripslashes($text); $final_result=strip_tags($stripslashes_result,"