Ok, so I this error on one of my PHP pages.
Parse error: syntax error, unexpected T_PRINT in /var/www/html/texas/z_code/wells_edit.php on line 177

I have no idea what i'm doing wrong and I've been trying to figure this out for some time. If any one could help me, that would be great.

And sorry for the crappy formatting, it's just how my boss wants it done.

<?php
include("../z_includes/header.php");
include("../z_includes/db_connect.inc");
include("../z_includes/queries.php");
include("../z_includes/makeCalendar.php");
?>

<div id="content">
<p></p>

<?php

$id = $_GET['id'];
print "id is $id<br />";

$query = wellsQuery();
$query .= " where WellApplicationID = " . $id;
print $query;
$Row = $myDB->FetchAssocQuery($query);
$wellRegistrationNumber = $Row['WellRegistrationNumber'];
$wellNewExistingStatus = $Row['WellNewExistingStatus'];
$wellExemptionStatus = $Row['WellExemptionStatus'];
$applicationDate = $Row['ApplicationDate'];
$wellOwner = $Row['WellOwner'];
$wellOwnerPhone = $Row['WellOwnerPhone'];
$contact = $Row['Contact'];
$contactEmail = $Row['ContactEmail'];
$contactFax = $Row['ContactFax'];
$contactMailingAddress = $Row[''];
$contactCity = $Row['ContactCity'];
$contactState = $Row['ContactState'];
$contactZip = $Row['ContactZip'];
$registrant = $Row['Registrant'];
$registrantPhone = $Row['RegistrantPhone'];
$registrantEmail = $Row['RegistrantEmail'];
$registrantFax = $Row['RegistrantFax'];
$registrantAddress = $Row['RegistrantAddress'];
$registrantCity = $Row['RegistrantCity'];
$registrantState = $Row['RegistrantState'];
$registrantZip = $Row['RegistrantZip'];
$propertyOwner = $Row['PropertyOwner'];
$propertyOwnerPhone = $Row['PropertyOwnerPhone'];
$propertyOwnerAddress = $Row['PropertyOwnerAddress'];
$propertyOwnerCity = $Row['PropertyOwnerCity'];
$propertyOwnerState = $Row['PropertyOwnerState'];
$propertyOwnerZip = $Row['PropertyOwnerZip'];
$dateDrilled = $Row['DateDrilled'];
$drillDateEstimateYN = $Row['DrillerDateEstimateYN'];
$drillingCompany = $Row['DrillingCompany'];
$drillingCompanyPhone = $Row['drillingCompanyPhone'];
$drillerName = $Row['DrillerName'];
$drillerLicenseNumber = $Row['DrillerLicenseNumber'];
$drillerLicenseExpirationDate = $Row['DrillerLicenseExpirationDate'];
$drillerFax = $Row['DrillerFax'];
$drillerEmail = $Row['DrillerEmail'];
$drillerAddress = $Row['DrillerAddress'];
$drillerCity = $Row['DrillerCity'];
$drillerState = $Row['DrillerState'];
$drillerZip = $Row['DrillerZip'];
$wellSiteAddress = $Row['WellSiteAddress'];
$wellSiteCity = $Row['WellSiteCity'];
$wellSiteState = $Row['WellSiteState'];
$wellSiteZip = $Row['WellSiteZip'];
$wellLatitude = $Row['WellLatitude'];
$wellLongitude = $Row['WellLongitude'];
$GPSManufacture = $Row['GPSManufacture'];
$GPSModel = $Row['GPSModel'];
$IsGWDifferentLocation = $Row['IsGWDifferentLocation'];
$GWDifferentLocation = $Row['GWDifferentLocation'];
$GWDifferentLocationUseDescription = $Row['GWDifferentLocationUseDescription'];
$IsGWTransportedOutsideDistrict = $Row['IsGWTransportedOutsideDistrict'];
$GWTransportedOutsideDistrictExplanation = $Row['GWTransportedOutsideDistrictExplanation'];
$IsReplacementWell = $Row['IsReplacementWell'];
$oldWellStatus = $Row['OldWellStatus'];
$oldWellStatusExplanation = $Row['OldWellStatusExplanation'];
$useDomestic = $Row['UseDomestic'];
$useLivestock = $Row['UseLivestock'];
$useCommercial = $Row['UseCommercial'];
$useSoleRigActivity = $Row['UseSoleRigActivity'];
$useSoleRigActivityOwnerHoldPermitYN = $Row['UseSoleRigActivityOwnerHoldPermitYN'];
$useMunicipal = $Row['UseMunicipal'];
$useIndustrial = $Row['UseIndustrial'];
$useGolf = $Row['UseGolf'];
$useOGRigActivity = $Row['UseOGRigActivity'];
$useSurfaceImpoundment = $Row['UseSurfaceImpoundment'];
$useAgriculture = $Row['UseAgriculture'];
$usePoultry = $Row['UsePoultry'];
$useLeachate = $Row['UseLeachate'];
$useMonitoring = $Row['UseMonitoring'];
$usePiezometer = $Row['UsePiezometer'];
$useOther = $Row['UseOther'];
$totalWellDepthFeet = $Row['TotalWellDepthFeet'];
$depthToFirstScreenFeet = $Row['DepthToFirstScreenFeet'];
$insideDiameterCasingInches = $Row['InsideDiameterCasingInches'];
$pumpMotorSizeHp = $Row['PumpMotorSizeHp']
$maxProductionCapacityGPM = $Row['MaxProductionCapacityGPM'];
$numberOfServiceConnections = $Row['NumberOfServiceConnections'];
$numberOfIndividualsWellServices = $Row['NumberOfIndividualsWellServices'];
$numberOfDaysOutOfYearWellServices = $Row['NumberOfDaysOutOfYearWellServices'];
$waterWellClosurePlanAttachedYN = $Row['WaterWeelClosurePlantAttachedYN'];
$IsWellReportDepositAttachedYN = $Row['IsWellRportDepositAttachedYN'];
$IsNewWellRegistrationFeeAttachedYN = $Row['IsNewWellRegistrationFeeAttachedYN'];
$certificationPrintName = $Row['CertificationPrintName'];
$certificationSignature = $Row['CertificationSignature'];
$certificationDate = $Row['CertificationDate'];
$dateTimeLastEdit = $Row['DateTimeLastEdit'];
$userLastEdit = $Row['UserLastEdit'];
$wellLatitude = $Row['WellLatitude'];
$wellLongitude = $Row['WellLogitude'];

print "$contact";
   print "<form action=\"wells_edit_sql.php\" method=\"get\">";
 
   print "<div id = \"leftSide\">";
   print "<input type=\"submit\" name=\"type\" value=\"Update\">";
   print "<p>"; 
   print "</p>"; 
   
   print "<p>"; 
   print "Well Application ID: <input type='text' name='id' disabled=\"DISABLED\" value='".$id."'>";
   print "</p>";
   
   print "<p>"; 
   print "Well Registration Number: <input type='text' name='id' disabled=\"DISABLED\" value='" . $wellRegistrationNumber . "'>";
   print "</p>";
    
   print "Well New or Existing Status: ";
   print "<select name=\"well_new_existing_status\">";
   print "<option value=" . $wellNewExistingStatus . ">" . $wellNewExistingStatus . "</option>";  
   $wellStatusQuery = "select distinct WellNewExistingStatus from z_tblWellApplication";
   $wellStatusQueryArray = getArrayFromQuery($wellStatusQuery);
   $wellStatusCount = count($wellStatusQueryArray);
   for ($newExistingCounter = 0; $newExistingCounter < $wellStatusCount; $newExistingCounter++) {
      print "<option value=" . $wellStatusQueryArray[$newExistingCounter]['WellNewExistingStatus'] . ">" . $wellStatusQueryArray[$newExistingCounter]['WellNewExistingStatus'] . "</option>";
   }
   print "</select>";
   print "</p>"; 
   
   print "<p>"; 
   print "Well Exemption Status: ";
   print "<select name=\"well_exemption_status\">";
   print "<option value=" . $wellExemptionStatus . ">" . $wellExemptionStatus . "</option>";  
   $wellExemptionQuery = "select distinct WellExemptionStatus from z_tblWellApplication where WellExemptionStatus is not null";
   $wellExemptionQueryArray = getArrayFromQuery($wellExemptionQuery);
   $wellExemptionCount = count($wellExemptionQueryArray);
   for ($exemptionCounter = 0; $exemptionCounter < $wellExemptionCount; $exemptionCounter++) {
      print "<option value= " . $wellExemptionQueryArray[$exemptionCounter]['WellExemptionStatus'] . ">" . $wellExemptionQueryArray[$exemptionCounter]['WellExemptionStatus'] . "</option>";
   }
   print "</select>";
   print "</p>"; 
   
   print "<p>"; 
   print "Application Date: <input type=\"text\" id=\"application_date\" name=\"Application_Date\" readonly=\"READONLY\" value='" . $applicationDate . "'>";
   print "<input type=\"button\" id=\"application_date_button\" value=\"...\">";
   print "</p>"; 
   
   print "<p>";
   print "Well Owner: <input type=\"text\" name=\"well_owner\" value='" . $wellOwner . "'>";
   print "</p>";
    
   print "<p>";
   print "Well Owner Phone:  <input type=\"text\" name=\"well_owner_phone\" value='" . $wellOwnerPhone . "'>";
   print"</p>";

   print "<p>";
   print "Contact: <input type=\"text\" name=\"contact\" value='" . $contact . "'>"; 
   print "</p>";
  
   print "<p>";
   print "Contact Email: <input type=\"text\" name=\"contact_email\" value='" . $contactEmail . "'>";
   print "</p>";
  
   print "<p>";
   print "Contact Fax <input type='text' name='contact_fax' value='" . $contactFaxt . "'>"; 
   print "</p>" 
 
   print "<p>
	     Contact Mailing Address: <input type='text' name='contac_mailing_address' value='". $contactMailingAddress . "'>
   	     </p>";
    
   print "<p>
		  Contact City: <input type='text' name='contact_city' value='".$contactCity."'> 
  	      </p>";
    

    print "<p>
		   Contact State: <input type='text' name='contact_state' value='".$contactState."'> 
   	       </p>";
    
	print "<p>
		   Contact Zip: <input type='text' name='contact_zip' value='".$contactZip."'> 
		   </p>";
		
	print "<p>
		   Registrant: <input type='text' name='Registrant' value='".$registrant."'> 
		   </p>";
		
	print "<p>
		   Registrant Phone: <input type='text' name='RegistrantPhone' value='".$registrantPhone."'> 
		   </p>";
		
	print "<p>
		   Registrant Email: <input type='text' name='RegistrantEmail' value='".$registrantEmail."'> 
		   </p>";
		
	print "<p>
		   Registrant Fax: <input type='text' name='RegistrantFax' value='".$registrantFax."'> 
		   </p>";
		
	print "<p>
		   Registrant Address: <input type='text' name='RegistrantAddress' value='".$registrantAddress."'> 
		   </p>";
		
	print "<p>
		   Registrant State: <input type='text' name='RegistrantState' value='".$registrantState."'> 
		   </p>";
		
	print "<p>
		   Registrant Zip: <input type='text' name='RegistrantZip' value='".$registrantZip."'> 
		   </p>";
		
	print "<p>
		   Property Owner: <input type='text' name='PropertyOwner' value='".$propertyOwner."'> 
		   </p>";
		
	print "<p>
		   Property Owner Phone: <input type='text' name='PropertyOwnerPhone' value='".$propertyOwnerPhone."'> 
		   </p>";
		
	print "<p>
		   Property Owner Address: <input type='text' name='PropertyOwnerAddress' value='".$propertyOwnerAddress."'> 
		   </p>";
		
	print "<p>
		   Property Owner City: <input type='text' name='PropertyOwnerCity' value='".$propertyOwnerCity."'> 
		   </p>";
		
	print "<p>
		   Property Owner State: <input type='text' name='PropertyOwnerState' value='".$propertyOwnerStae."'> 
		   </p>";
    
    print "<p>
		   Property Owner Zip: <input type='text' name='PropertyOwnerZip' value='".$propertyOwnerZip."'> 
		   </p>";
    
    print "<p>
		   Date Drilled: <input type='text' name='DateDrilled' value='".$dateDrilled."'> 
		   </p>";
    
    print "<p>
		   Drill Date Estimate Y/N: <input type='text' name='DrillDateEstimateYN' value='".$drillDateEstimateYN."'> 
		   </p>";
    
    print "<p>
		   Drilling Company: <input type='text' name='DrillingCompany' value='".$drillingCompany."'> 
		   </p>";
    print "<p>
		   Drilling Company Phone: <input type='text' name='DrillingCompanyPhone' value='".$drillingCompanyPhone."'> 
		   </p>";    

    print "<p>
		   Driller Name: <input type='text' name='DrillerName' value='".$drillerName."'> 
		   </p>";    

    print "<p>
		   Driller License Number: <input type='text' name='Driller_LicenseNumber' value='".$drillerLicenseNumber."'> 
		   </p>";    

    print "<p>
		   Driller License Expiration Date: <input type='text' name='DrillerLicenseExpiration' value='".$drillerLicenseExpirationDate."'> 
		   </p>";
    
    print "<p>
		   Drilling Company Fax: <input type='text' name='DrillingCompanyFax' value='".$drillingCompanyFax."'> 
		   </p>";
    
    print "<p>
		   Drilling Company Email: <input type='text' name='DrillingCompanyEmail' value='".$drillingCompanyEmail."'> 
		   </p>";
    
    print "<p>
	       Drilling Company Address: <input type='text' name='DrillingCompanyAddress' value='".$drillingCompanyAddress."'> 
		   </p>";
    
    print "<p>
		   Drilling Company City: <input type='text' name='DrillingCompanyCity' value='".$drillingCompanyCity."'> 
		   </p>";
    
    print "<p>
		   Drilling Company State: <input type='text' name='DrillingCompanyState' value='".$drillingCompanyState."'> 
		   </p>";
    
    print "<p>
		   Drilling Company Zip: <input type='text' name='DrillingCompanyZip' value='".$drillingCompanyZip."'> 
		   </p>";
    
    print "<p>
		   Well Site Address: <input type='text' name='WellSiteAddress' value='".$wellSiteAddress."'> 
		   </p>";
    
    print "<p>
	 	   Well Site City:  <input type='text' name='WellSiteCity' value='".$wellSiteCity."'> 
		   </p>";
    
    print "<p>
 		   Well Site State: <input type='text' name='WellSiteState' value='".$wellSiteState."'> 
		   </p>";
    
    print "<p>
		   Well Site Zip: <input type='text' name='WellSiteZip' value='".$wellSiteZip."'> 
		   </p>";
    
    print "<p>
		   Well Latitude: <input type='text' name='WellLatitude' value='".$wellLatitude."'> 
		   </p>";
    
    print "<p>
		  Well Longitude: <input type='text' name='WellLongitude' value='".$wellLongitude."'> 
		  </p>";
    
    print "<p>
		   GPS Manufacturer: <input type='text' name='GPSManufacturer' value='".$GPSManufacture."'> 
		   </p>";
    
    print "<p>
		   GPS Model: <input type='text' name='GPSModel' value='".$GPSModel."'> 
		   </p>";
    
    print "<p>
		   IS GW Different Location: <input type='text' name='IsGWDIfferentLocation' value='".$IsGWDifferentLocation."'> 
		   </p>";
    
    print "<p>
		   GW Different Location: <input type='text' name='GWDifferentLocation' value='".$GWDifferentLocation."'> 
		   </p>";
    
    print "<p>
		   GW Different Location Use Description: <input type='text' name='GWDifferentLocationUse' value='".$GWDifferentLocationUseDescription."'> 
		   </p>";
    
    print "<p>
		   Is GW Transported Outside District: <input type='text' name='IsGWTransportedOutside' value='".$IsGWTransportedOutsideDistrict."'> 
		   </p>";
    
    print "<p>
		   GW Transported Outside District Explanation:  <input type='text' name='GWTransportedOutside' value='".$GWTransportedOutsideDistrictExplanation."'> 
		   </p>";
    
    print "<p>
		   Is Replacement Well:  <input type='text' name='IsReplacementWell' value='".$IsReplacementWell."'> 
		   </p>";
    
    print "<p>
		   Old Well Status:  <input type='text' name='OldWellStatus' value='".$oldWellStatus."'> 
		   </p>";
    
    print "<p>
		   Old Well Status Explanation: <input type='text' name='OldWellStatusExplanation' value='".$oldWellStatusExplanation."'> 
		   </p>";
    
    print "<p>
		   Use Domestic: <input type='text' name='UseDomestic' value='".$useDomestic."'> 
		   </p>";
    
    print "<p>
		   Use Livestock:  <input type='text' name='UseLivestock' value='".$useLivestock."'> 
		   </p>";
    
    print "<p>
		   Use Commercial:  <input type='text' name='UseCommercial' value='".$useCommercial."'> 
		   </p>";
    
    print "<p>
		   Use Sole Rig Activity:  <input type='text' name='UseSoleRigActivity' value='".$useSoleRigActivity."'> 
		   </p>";
    
    print "<p>
		   Use Sole Rig Activity Owner Hold Permit Y/N:  <input type='text' name='UseSoleRigActivityOwnerHoldPermitYN' value='".$useSoleRigActivityOwnerHoldPermitYN."'> 
		   </p>";
    
    print "<p>
		   Use Municipal:  <input type='text' name='UseMunicipal' value='".$useMunicipal."'> 
		   </p>";
    
    print "<p>
		   Use Industrial:   <input type='text' name='UseIndustrial' value='".$useIndustrial."'> 
		   </p>";
    
    print "<p>
		   Use Golf: <input  type='text' name='UseGolf' value='".$useGolf."'> 
		   </p>";
    
    print "<p>
		   Use OG Rig Activity: <input type='text' name='UseOGRigActiviy' value='".$useOGRigActivity."'> 
		   </p>";
    
    print "<p>
	 	   Use Surface Impoundment:   <input type='text' name='UseSurfaceImpoundment' value='".$useSurfaceImpoundment."'> 
		   </p>";
    
    print "<p>
		   Use Agriculture:  <input type='text' name='UseAgriculture' value='".$useAgriculture."'> 
		   </p>";
    
    print "<p>
		   Use Poultry:   <input  type='text' name='UsePoultry' value='".$usePoultry."'> 
		   </p>";
    
    print "<p>
		   Use Leachate:  <input type='text' name='UseLeachate' value='".$useLeachate."'> 
		   </p>";
    
    print "<p>
		   Use Monitoring:  <input type='text' name='UseMonitoring' value='".$useMonitoring."'> 
		   </p>";
    
    print "<p>
		   Use Piezometer:  <input type='text' name='UsePiezometer' value='".$usePiezometer."'> 
		   </p>";
    
    print "<p>
		   Use Other:  <input  type='text' name='UseOther' value='".$useOther."'> 
		   </p>";
    
    print "<p>
		   Total Well Depth Feet:  <input type='text' name='TotalWellDepthFeet' value='".$totalWellDepthFeet."'> 
		   </p>";
    
    print "<p>
		   Depth To First Screen Feet:  <input type='text' name='DepthToFirstScreenFeet' value='".$depthToFirstScreenFeet."'> 
		   </p>";
    
    print "<p>
		   Inside Diameter Casing Inches:  <input type='text' name='InsideDiameterCasing' value='".$insideDiameterCasingInches."'> 
		   </p>";
    
    print "<p>
		   Pump Motor Size HP:  <input type='text' name='PumpMotorSizeHP' value='".$pumpMotorSizeHp."'> 
		   </p>";
    
    print "<p>
		   Max Production Capacity GPM:  <input type='text' name='MaxProductionCapacityGPM' value='".$maxProductionCapacityGPM."'> 
		   </p>";	
    
    print "<p>
		   Number Of Service Connections:  <input type='text' name='NumberOfService' value='".$numberOfServiceConnections."'> 
		   </p>";
    
    print "<p>
		   Number Of Individual Well Services:  <input type='text' name='NumberOfIndividualWell' value='".$numberOfIndividualWellServices."'> 
		   </p>";
    
    print "<p>
		   Water Well Closure Plan Attached Y/N:  <input type='text' name='WaterWellClosurePlan' value='".$waterWellClosurePlanAttachedYN."'> 
		   </p>";
    
    print "<p>
		   Is Well Report Deposit Attached Y/N:  <input type='text' name='IsWellReportDepositAttachedYN' value='".$IsWellReportDepositAttachedYN."'> 
		   </p>";
    
    print "<p>
		   Is New Well Registration Fee Attached Y/N:  <input type='text' name='IsNewWellRegistrationFeeAttachedYN' value='".$IsNewWellRegistrationFeeAttachedYN."'> 
		   </p>";
    
    print "<p>
		   Certification Print Name: <input type='text' name='CertificationPringName' value='".$certificationPrintName."'> 
		   </p>";
    
    print "<p>
		   Certification Signature:  <input type='text' name='CertificationSignature' value='".$certificationSignature."'> 
		   </p>";
    
    print "<p>
		   Certification Date: <input type='text' name='CertificationDate' value='".$certificationDate."'> 
		   </p>";
    
    print "<p>
		   Date Time Last Edit: <input type='text' name='DateTimeLastEdit' value='".$dateTimeLastEdit."'> 
		   </p>";
    
    print "<p>
		   User Last Edit: <input type='text' name='UserLastEdit' value='".$userLastEdit."'> 
		   </p>";

    print "</form>";
    print "<p></p>";
    print "</div>";

?>

 <script type="text/javascript">
    Calendar.setup (
      {
       inputField       : "application_date",
       ifFormat         : "%m-%d-%Y",
       button           : "application_date_button"
      }
    );
 </script>




<p></p>
</div>
<?php include("../z_includes/footer.php"); ?>
Member Avatar for iamthwee

Most of the google results return there being a space between the php tags:

vis a vis:

<? php

??

Maybe the fact that there is no semi-colon ending line 175 might have something to do with it!?

commented: Okay you get the cookie... +15

Maybe the fact that there is no semi-colon ending line 175 might have something to do with it!?

holy freaking crap, i'm retarded. Thanks man.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.