#Get HTML of the elements $disElementHTML = $formGen -> getDisElementHTML(); #Get Error Messages $errMsg = $formGen -> getErrorMsg("The following errors occured","style2"); #Get Posted Values $postedVals = $formGen -> getPostedElementValues(); if(count($postedVals)) { for($z=0;$z<count($postedVals)/2;$z++) { $orderV = array("ordering" => $postedVals["order".$z]); $condition = "catid = ".$postedVals["id".$z]; $resAddUpdate = $mySqlObj -> queryUpdate("categories",$orderV,true,$condition); } redirectPage("index.php?action=categories"); } $cont[0][0] = array("value" => "<b>Category ID</b>", "width" => "100"); $cont[0][1] = array("value" => "<b>Category Name</b>", "width" => "200"); $cont[0][2] = array("value" => "<b>Order</b>"); $cont[0][3] = array("value" => " "); for($i=0; $i < count($res); $i++) { $cont[$i+1][0] = array("value" => $res[$i]["catid"]);