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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:26:15+00:00 2026-06-12T02:26:15+00:00

As far as I have read, backticks are not required around, for example, table

  • 0

As far as I have read, backticks are not required around, for example, table names in queries: (“INSERT INTO table_name….”). In addition, to my knowledge, underscores are perfectly acceptable syntax to use in names: foo_bar. My question then is, why did this query fail:

mysql_query("INSERT INTO quick_links WHERE ...etc");

when this query worked perfectly:

mysql_query("INSERT INTO `quick_links` WHERE ...etc");

Are “quick” or “links” reserved words??? I didn’t think so, but then again, I’m fairly new to MySQL, so I apologize. Also,is using backticks necessary in certain “Storage Engines” (referencing phpMyAdmin for the terminology)? I happen to be using “InnoDB” if that makes any difference.

Thanks for the answers, I’m new to MySQL, and I like to make sure I understand nuances like these.

My full query was this:

mysql_query("INSERT INTO `quick_links` VALUES (
    '$user_id', '$ql_name', '$ql_url', '$ql_img'
)"); 

$ql_url and $ql_name were obtained via $_POST and then sanitized with trim and mysql_real_escape_string before being used in the query. $ql_img is simply a url referring to a directory in which a thumbnail is uploaded, and $user_id is there to, well, identify the particular user who is logged in. Both queries were exactly the same, literally, except for the backticks around the table_name.

  • 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-12T02:26:16+00:00Added an answer on June 12, 2026 at 2:26 am

    Backtick are only used to escape MySQL Reserved words. They are optional if didn’t use any of the reserved keywords provided that the tableNames or columnNames used has no spaces on it.

    This page tells the allowable characters to be used in schema.

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

Sidebar

Related Questions

So far I have: //read in data from CSV file and separate it into
I am beginning on ASP.net MVC. All the articles I have read so far
As far as I have read in the Internet and official documentation, it isn't
I'm starting to work with Android, and as far as I have read, the
I'm an absolute newbie to Moose and so far I have read Moose and
A question arises while reading about socket programming, So far I have read routing
I'll have to read a regex tutorial - so far I have a mental
I have read a lot about Java classloaders, but so far I have failed
I have read many articles so far and tried so many different ways to
As far as I have read, PHP can only get the file listing from

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.