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 7770329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:23:01+00:00 2026-06-01T16:23:01+00:00

$query = INSERT INTO textbooks (uid, title, edition, author, isbn, condition, description, photo) VALUES

  • 0
$query = "INSERT INTO textbooks (uid, title, edition, author, isbn, condition, description, photo) VALUES (9, 'q', 'a', 'b', 'c', 'd', 'e', '$extension')";

$result = mysql_query($query) or die('Could not connect: ' . mysql_error());

Could not connect: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition, description, photo) VALUES (9, 'q', 'a', 'b', 'c', 'd', 'e', '.jpg')' at line 1

I’ve been receiving a MySQL syntax error but I can’t for the life of me figure out what’s wrong. I placed in random variables, strings, and int just to test but it’s not working.

  1. title, edition, author, isbn, condition, description, photo are all varchars
  2. uid is an int
  3. description is text
  • 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-01T16:23:03+00:00Added an answer on June 1, 2026 at 4:23 pm

    condition is reserved word in mysql. Use `condition`

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

Sidebar

Related Questions

Whats wrong with insert query. $result = $conn->query(insert into user (fullname,username,email,passwd) values ('.$data['fullname'].','.$data['username'].','.$data['email'].','.$data['fullname'].') );
$result = mysql_query(INSERT INTO project (clientname, salesperson, prospect) VALUES ('$clientName','$salesPer','$prospectVal')); while ($row = mysql_fetch_assoc($result))
I have a query insert into carsdescription (description,idCar) value (@description,@idCar) where idCar=@idCar; select nameOfCar
I have the following query: INSERT INTO table (a, b, c) VALUES (NOW(), NOW()
What's wrong with this query: INSERT INTO Users( weight, desiredWeight ) VALUES ( 160,
im trying to insert this query with mysql_query INSERT INTO um_group_rights (`um_group_id`,`cms_usecase_id`,`um_right_id`) VALUES (2,1,1)
I'm using the following query: INSERT INTO role (name, created) VALUES ('Content Coordinator', GETDATE()),
Here's the query: INSERT INTO jobemails (jobid, to, subject, message, headers, datesent) VALUES ('340',
I've the following query: INSERT INTO table ( memberid, field1, field2, field3 ) VALUES
I am running this sort of query: insert into mytable (id, col1, col2) values

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.