Im still new to php and fumbling my way through. I am running the output of a query and the first row is not displaying. This is happening on all my queries. Heres my query and loop im running:
<?php
mysql_select_db($database_todaysmother, $todaysmother);
$query_SelectCats = "SELECT intProdGroupID, varProdGroupName FROM ProductGroup ORDER BY varProdGroupName ASC";
$SelectCats = mysql_query($query_SelectCats, $todaysmother) or die(mysql_error());
$row_SelectCats = mysql_fetch_assoc($SelectCats);
$totalRows_SelectCats = mysql_num_rows($SelectCats);
?>
<?php
while(list($intProdGroupID,$varProdGroupName) = mysql_fetch_row($SelectCats)){
echo "<option value=$intProdGroupID>$varProdGroupName</option>\n";
}
?>
TIY
<?php
mysql_select_db($database_todaysmother, $todaysmother);
$query_SelectCats = "SELECT intProdGroupID, varProdGroupName FROM ProductGroup ORDER BY varProdGroupName ASC";
$SelectCats = mysql_query($query_SelectCats, $todaysmother) or die(mysql_error());
$row_SelectCats = mysql_fetch_assoc($SelectCats);
$totalRows_SelectCats = mysql_num_rows($SelectCats);
?>
<?php
while(list($intProdGroupID,$varProdGroupName) = mysql_fetch_row($SelectCats)){
echo "<option value=$intProdGroupID>$varProdGroupName</option>\n";
}
?>
TIY