[SOLVED]I give up.....help
Posted: Wed Sep 22, 2004 9:25 am
Ok, I have read through the forums and still could not find my answer. I have changed my code over and over and still does not work. So I turn to the Gods for help (btw, that is you all)! 
Here is my error message:
This is a very simple piece of code and I have used this snippet before. So can someone tell me why it is not working now please?
Here is my error message:
Here is my code:Notice: Undefined offset: 1 in /var/www/html/public/amcad/admin/admin_edit.php on line 9
Notice: Undefined offset: 2 in /var/www/html/public/amcad/admin/admin_edit.php on line 9
Notice: Undefined offset: 3 in /var/www/html/public/amcad/admin/admin_edit.php on line 9
Code: Select all
<?php
if (isset($_REQUEST['group_delete'])){
$result_cat = mysql_query("SELECT product_category FROM product_category WHERE product_group = '".$array['product_group']."'")
or die("<b>MySQL Error 2:</b> ".mysql_errno()." : ".mysql_error());
$numrows = mysql_num_rows($result_cat);
$array_cat = mysql_fetch_array($result_cat);
for ($i=0; $i < $numrows; $i++){
echo "<p class='normal'>".$array_cat[$i]."</p>";
}
}
?>