I cannot figure out what I'm missing in order to get the each row the following information out of MySQL.
category_id category_blog_id category_label
I got the ability to pull one of them but the others I cannot get.
$category = mysql_query( "SELECT `category_label` FROM `mt_category` WHERE 1 AND `category_blog_id`=".$blog_id." ORDER BY `category_id` ASC;" );
Here's what I'm displaying:
<?php
while ($a_row = mysql_fetch_row( $category ) ) {
foreach ( $a_row as $field )
print "<option value="}
?>
What I'm trying to get from this is
Where am I missing in this code to be able to get the category_id along with the name ($field)?
Digatle
category_id category_blog_id category_label
I got the ability to pull one of them but the others I cannot get.
$category = mysql_query( "SELECT `category_label` FROM `mt_category` WHERE 1 AND `category_blog_id`=".$blog_id." ORDER BY `category_id` ASC;" );
Here's what I'm displaying:
<?php
while ($a_row = mysql_fetch_row( $category ) ) {
foreach ( $a_row as $field )
print "<option value="}
?>
What I'm trying to get from this is
Where am I missing in this code to be able to get the category_id along with the name ($field)?
Digatle