/ query database for all users /
$sql_result = mysql_query("SELECT * FROM xggirl_categories WHERE xggirl_category_modelid = $currentmodel");
Hello
If you are curiouus to the code. Here it is. I will look at it tongith but I see nothing wrong with it.
Avery
/* query database for all users */
$sql_result = mysql_query("SELECT * FROM xggirl_categories WHERE xggirl_category_modelid = $currentmodel");
/* loops through current categories for model */
if ($sql_result==0)
{
echo "<tr><td>No Category Available</td></tr>";
}else
while($row = mysql_fetch_assoc($sql_result))
{
/* shows results if any */
echo "<tr><td><a href=\"admin.php?op=xggirl_photos&modelid=$currentmodel&category=$row[xggirl_category_id]\">$row[xggirl_category_name]</a>";
echo "</td><td> <a href=\"admin.php?op=xggirl_categoryprofile&modelid=$currentmodel&category=$row[xggirl_category_id]\">Update Category</a> </td></tr>\n";
}