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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:30:41+00:00 2026-05-13T22:30:41+00:00

I have a bunch of PHP code that is auto-generated and it puts all

  • 0

I have a bunch of PHP code that is auto-generated and it puts all table names and field names within quotes. To wit:

INSERT INTO "t_ML_u_Visitor"("c_u_ID") VALUES ...

Since the code is Auto-Generated it would be much preferred if I could somehow get MySql to accept this syntax rather than subjecting the generated code to a post-process, that strips the quotes.

I have tried this:

$conn=$mysqli = new mysqli("localhost", "root", "", "myDB");
$R=$conn->options(MYSQLI_INIT_COMMAND, "SET SQL_MODE = 'ANSI'"); 

But to no avail.

Help?

  • 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-05-13T22:30:41+00:00Added an answer on May 13, 2026 at 10:30 pm

    The normal quote character is the back-quote – eg

    create table `quoted`( `v` varchar(10) );
    

    Can you change the quote character your auto-generated queries use to suit ?

    EDIT: I just tried ANSI mode, and it does what you want:

    set @session sql_mode = ANSI;
    create table "world"( "v" varchar(10));
    

    The problem then becomes that double-quote can no longer be used to quote literal strings.

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

Sidebar

Related Questions

I have a real basic form (code below) with a bunch of back-panel PhP.
I have an application that is mainly a bunch of PHP files included in
I have a php array that has a bunch of data that I need
I have a php page that takes in a bunch of url parameters and
So, I have a bunch of code that I'm pulling from a column in
I have a php file and a bunch of HTML elements that include: header
I have a bunch of HTML that is generated by a daemon using C,
I have some code that extracts a bunch of data and stores the result
I know in PHP you can have like a bunch of different images that
I have a bunch of sites that work great with nginx + php-fastcgi and

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.