Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MAde some small changes
  • Loading branch information
MFox committed Apr 28, 2017
1 parent de58378 commit db4611f
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion Wello/www/form.php
Expand Up @@ -59,6 +59,53 @@ if($_SERVER['REQUEST_METHOD']=='POST') {
$Comment = $mysqli->real_escape_string(trim($_POST['notes']));

// if (empty($errors)) { //If no errors in error array

if ($_GET['Admin'] == 1) {
$form_update = "UPDATE well_pending
SET
Registration_Number = '$RegistrantNumber',
State_Well_No = '$StateWellNumber',
Other_No = '$OtherNumber',
Owner_First_Name = '$OwnerFirstName',
Owner_Last_Name = '$OwnerLastName',
Owner_Address = '$OwnerAddress',
Well_Street_Number = $WellStreetNumber,
Well_Street_Name = '$WellStreetName',
Well_Town = '$WellTown',
Well_Zip = '$WellZip',
Well_Lot_Number = '$WellLotNumber',
Well_Latitude = '$WellLatitude',
Well_Longitude = '$WellLongitude',
Relative_Location = '$RelativeLocation',
Proposed_Use = '$ProposedUse',
Drilling_Equipment = '$DrillingEquipment',
Casing_Length_Feet = '$CasingLength',
Casing_Diameter_Inches = '$CasingDiameter',
Casing_Weight_Per_Foot_Pounds = '$CasingWeight',
Casing_Joint_Type = '$CasingJoint',
Drive_Shoe = '$DriveShoe',
Grouted = '$CasingGrouting',
Yield_Test_Type = '$YieldType',
Yield_Test_Hours = '$YieldHours',
Yield_GPM = '$YieldGPM',
Yield_Test_Notes = '$YieldNotes',
Static_Water_Level_Feet = '$WaterDepth',
Yield_Test_Water_Level_Feet = '$YieldWaterLevel',
Well_Depth_Feet = '$WellDepth',
Screen_Make = '$ScreenMake',
Open_Screen_Length_Feet = '$OpenScreenLength',
Screen_Slot_Size = '$ScreenSlotSize',
Screen_Diameter_Inches = '$ScreenDiameter',
Gravel_Packed = '$Gravel',
Well_Diameter_Inches = '$DiameterIncludingGravel',
Gravel_Size_Inches = '$GravelSize',
comment = '$Comment',
Depth_To_Top_Of_Gravel_Pack = '$DepthToTop',
Depth_To_Bottom_Of_Gravel_Pack = '$DepthToBottom'
WHERE Permit_Number = $Well_ID
LIMIT 1";
}
else {
$form_update = "UPDATE well_completion_report
SET
Registration_Number = '$RegistrantNumber',
Expand Down Expand Up @@ -102,8 +149,8 @@ if($_SERVER['REQUEST_METHOD']=='POST') {
Depth_To_Bottom_Of_Gravel_Pack = '$DepthToBottom'
WHERE Permit_Number = $Well_ID
LIMIT 1";
}
$r_update = $mysqli->query($form_update);
// }

}

Expand Down

0 comments on commit db4611f

Please sign in to comment.