Hi All
i have a query that works for pulling all the rows from a table "categories"
$qry2 = "SELECT * FROM " . $sql_tbl["categories"];
$result2 = db_query($qry2);
$categories = array();
while ($result_row = db_fetch_array($result2)){$categories[] = $result_row;}
I can then pull the data from the category field with
foreach($categories as &$categorie){
$categorie['category'] = $str_categories;
}
What im trying to do is pull the data from a different field in the same table field "seo-url" & not the "category" field. making the following change doesnt work
foreach($categories as &$categorie){
$categorie['seo-url'] = $str_categories;
}
can anyone help please?
Many thnaks