// // $unit_vars->SelectDataWhere($preft,$swhere); // $unit_vars->NumRows($unit_vars->outselect); // if ($unit_vars->outnumrow==0 and $bbo==0) { if ($bbo == 0) { $unit_vars->InsertQuery($preft, '', $nValues); ?> <body onload='javascript:alert ("Record Saved!");'></body> <?php $com = ''; $user_id = ""; $af_start = ""; $af_end = ""; $bbo = ""; } elseif ($com == 'edit') { $unit_vars->UpdateQuery($preft, $setfld, $ewhere); ?> <body onload='javascript:alert ("Record Updated!");'></body> <?php $com = ''; $user_id = ""; $af_start = ""; $af_end = ""; $bbo = ""; } else { ?> <body onload='javascript:alert ("Existing User Found"); frm.af_start.focus(); frm.af_start.select();'></body> <?php } $bbo = ''; } elseif ($com == 'delete') {