Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9200191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:42:37+00:00 2026-06-17T22:42:37+00:00

Hey guys I have this code: $tdata = INSERT INTO insuranceverificationdisclaimer (InsCoName, PhoneNumber, Policy,

  • 0

Hey guys I have this code:

$tdata = "INSERT INTO insuranceverificationdisclaimer (InsCoName, PhoneNumber, Policy, InsuredName, MailingAdrs, EffDate, ExpDate, Email1, YrVehicle , Make, Model, VIN, TraineeUserName, EmpName, EmpCoName, AgencyNumber, SignDate, AgentName, AgentPhone, AgentEmail , Combinedlimit, bodyinjur ,bodyinjureachacc , propertydmg ) VALUES (':insur',':phone',':policy' ,':insurname',':mailingad',':effdate',':expdate',':email',':yr',':make',':model',':vin',':user',':empname',':empcomp',':agnum',':signdate',':agname',':agphone',':agemail',':csl',':body',':acc',':prop')";
$tinsertdata = $DBH->prepare($tdata);
$tinsertdata->execute(array(':insur' => $compname, ':phone' => $phone , ':policy' => $policynum, ':insurname' => $nameofPolicyholder, ':mailingad' => $newMailingAdrs, ':effdate' => $Policyeffdate, ':expdate' => $Policyexpdate, ':email' => $newEmployeeEmail, ':yr' => $YearOfVehicle, ':make' => $MakeOfVehicle, ':model' => $ModelOfVehicle, ':vin' => $Vehicleid, ':user' => $username, ':empname' => $EmployeeName, ':empcomp' => $EmployeeCompanyName, ':agnum' => $Agencynum, ':signdate' => $TodaysDate, ':agname' => $agentname, ':agphone' => $agentphone, ':agemail' => $agentemail, ':csl' => $singlelimit, ':body' => $bodyinjur, ':acc' => $eachacc, ':prop' => $propertydmg ));

But once I hit the execute it will not go forth. The funny thing is this came up out of no where based on if you enter a value into a text field called combined limits which is the Combinedlimits on the database insert. It just blanks the page out and it fails on the execute. I don’t see anything wrong so I don’t know why it is doing this. I checked to see if the field in the database is like the others and it is so I don’t get it.

Combinedlimit is a int(100) with a default of '0' if nothing is entered. Not if you don’t enter anything into that field on the form it works correctly.

here is the input box code for the combinedlimit:

<span class="limitsection">Combined Single Limit for bodily 
injury and property damage liability: </span>
<div class="InputInner"> <input type="text" 
name="singlelimit" onkeypress="return isNumberKey(event)"  
class="combinedinput" value="<?php echo $_SESSION['singlelimit']; ?>">
</div><!----- END    .InputInner ---------->

the keypress just only allows the user to enter numbers.

If you can help I would appreciate 🙂

EDIT:

I just recieved this error:

Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000]: General error: 1366 Incorrect integer value: ‘:csl’ for column ‘Combinedlimit’ at row 1′ in E:\web\pcgprote\PCG\insert.php:545 Stack trace: #0 E:\web\pcgprote\PCG\insert.php(545): PDOStatement->execute(Array) #1 {main} thrown in E:\web\pcgprote\PCG\insert.php on line 545

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:42:39+00:00Added an answer on June 17, 2026 at 10:42 pm

    There is no need to quote the placeholders inside the prepared statement (i.e. not ':insur', but simply :insur). PDO handles quoting the values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys I have a weird error I wrote this code against setbubblepopup $(document).ready(function
Hey guys, I have this quick bit of code that I can't figure out
Hey guys, I have this piece of jquery code: <script type=text/javascript > $(function() {
hey guys, i have very small issue please see the code below // this
Hey guys, I have this code within a function inside a class that is
Hey guys, I have this code for an android application, the funny thing is
Hey guys, I just started learning C++ and I have this code that I
hey there guys and girls i have this code that should download a json
hey there guys and girls i have this code that saves json as a
hey guys I have the follow code in js: $(document).ready(function(){ $(.replyLink).click(function(){ $(#form-to-+this.id).html(htmlForm()).toggle(500); return false;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.