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

  • SEARCH
  • Home
  • 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 3240746
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:07:13+00:00 2026-05-17T18:07:13+00:00

Hey… so I attempted to run the query below and it just won’t do

  • 0

Hey… so I attempted to run the query below and it just won’t do it. I’ve checked:

  • The number of fields in the form matches the number of fields in the table.
  • The number of session variables matches those numbers too.
  • That the actual query contains the data to be input with an echo.
  • That the table name is correct.
  • That queries work with other tables in the same database (they DO).
  • Used or die(mysql_error(); to get the “Incorrect syntax” error.
  • Rebuilt the table several times.

Here’s the line that’s apparently syntactically problematic, if you can see anything wrong with it or point me in the right direction I’d be super greatful as I’m at a loss now! Might it be a memory issue?

$sql = "INSERT INTO careBoiler (buyerID, date, sector, require, boilerMake, boilerModel, boilerType, heating, visit, deadline, budget, currcompany, specificreq) VALUES ('{$_SESSION['buyerID']}', now(), '{$_SESSION['cb']['sector']}', '{$_SESSION['cb']['require']}', '{$_SESSION['cb']['boilerMake']}', '{$_SESSION['cb']['boilerModel']}', '{$_SESSION['cb']['boilerType']}', '{$_SESSION['cb']['heating']}', '{$_SESSION['cb']['visit']}', '{$_SESSION['cb']['deadline']}', '{$_SESSION['cb']['budget']}', '{$_SESSION['cb']['currcompany']}', '{$_SESSION['cb']['specificreq']}')";
  • 1 1 Answer
  • 1 View
  • 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-05-17T18:07:14+00:00Added an answer on May 17, 2026 at 6:07 pm

    Looks like require is a MySQL reserved word which you are using as a column name.

    To fix this you can either choose a different column name or place it in back ticks as:

    $sql = "INSERT INTO careBoiler (buyerID, date, sector, `require`,...
                                                           ^       ^
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey how can I clone the table named teamselectiontable with just the table rows
Hey I am just wondering why the following query is returning blank spaces in
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;
Hey am just curious to know if this can be done! I want to
Hey guys I am struggling to create a query which gives schedule of a
Hey can we hide/show tab layout on button click which will be placed below
Hey, I am Just Learning CoffeeScript and I Keep getting Errors. Here is my
Hey, PHP newbie here when I try to run this to get an IP
hey i stucked in the problem for just Login here is my servlet /*
Hey just curious is there a function that you can use to divide in

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.