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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:26:04+00:00 2026-06-10T22:26:04+00:00

$result2 = mysql_query("INSERT INTO mazegames (game,savename,player,playerimg,level,gold,keys,puzzle,posX,posY,map) VALUES (‘$game’,’$Save’,’$player’,’$playerimg’,’$level’,’$gold’,’$keys’,’$puzzle’,’$x’,’$y’,’$map’)",$db); I keep getting this error: Error

  • 0
$result2 = mysql_query("INSERT INTO mazegames
        (game,savename,player,playerimg,level,gold,keys,puzzle,posX,posY,map)
    VALUES
        ('$game','$Save','$player','$playerimg','$level','$gold','$keys','$puzzle','$x','$y','$map')",$db);

I keep getting this error:

Error saving Johnson game. (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 'keys,puzzle,posX,posY,map)
VALUES
('maze','Johnson','Patrick','eddie' at line 2 -- 'maze','Johnson','Patrick','eddie.gif','1','0','0','fail','17','13','w,w,w,w,w,w,w,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w,w,w,w,w,w,w,w,g,g,w,w,w,w,k,w,w,w,w,w,g,g,g,w,w,w,w,w,w,w,w,m,m,w,g,g,g,g,g,g,w,m,g,g,g,d,g,g,g,w,w,w,w,w,w,w,w,g,m,w,w,w,w,g,g,g,w,g,g,g,g,w,g,w,g,w,w,w,w,w,w,w,w,g,g,d,s,d,d,g,g,g,w,g,g,g,w,g,g,g,g,w,w,w,w,w,w,w,w,b,w,w,w,w,w,g,g,w,g,g,g,w,g,g,w,g,g,w,w,w,w,w,w,w,w,x,w,w,w,w,w,m,g,c,g,g,w,a,g,w,g,g,e,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w')

I have increased the size of the ‘map’ column to VARCHAR (10000) because I thought I was overrunning the limit of 1000 that I had it set at, but I still get the error.

  • 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-10T22:26:05+00:00Added an answer on June 10, 2026 at 10:26 pm

    keys is a reserved word, like SELECT, LIMIT or something else. The correct usage is adding backticks around each field so SQL identifies it.

    $result2 = mysql_query("INSERT INTO mazegames
        (`game`,`savename`,`player`,`playerimg`,`level`,`gold`,`keys`,`puzzle`,`posX`,`posY`,`map`)
    VALUES
        ('$game','$Save','$player','$playerimg','$level','$gold','$keys','$puzzle','$x','$y','$map')",$db);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if (isset($_POST['login'])) { $query = mysql_query(" SELECT id FROM users WHERE username = '".mysql_real_escape_string($_POST['username'])."'
Greetings, I'm having the following issue: When I attempt to execute several INSERT INTO
I have the following query: $result = mysql_query("SELECT option_value FROM wp_10_options WHERE option_name='homepage'"); $row
How do I store a MySQL query result into a local CSV file? I
I'm trying to mesh the below mysql query results into a single json object,
<?php $sql = " SELECT e.*, l.counts AS l_counts, l.date AS l_date, lo.counts AS
Let's say I need to have the ratio of "number of items available from
I've always been confused on how to combine multiple MySQL queries into one. I've
I have a game script thing set up, and when it creates a new
Using: MySQL 5.1 + PHP 5.3.5 MySQL: id in "table" is defined as: mediumint(6)

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.