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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:54:35+00:00 2026-05-27T12:54:35+00:00

I keep getting the following error message when trying to UPDATE one of my

  • 0

I keep getting the following error message when trying to UPDATE one of my database tables:

idrr = 167

age_notes = 'Enumerate, Louisvilleluminary, Nacho Friend, Bulls and Bears, Bricklayer, Activity Report, Interactif, Soundman).\r\n

\r\nBashford Manor S (gr-III, 6f, defeating Flatter Than Me, Brassy Boy, Grand Slam Andre, Soundman, Westrock Gold, Vito Filitto, Even Wilder).\r\n

\r\nA maiden special weight race at Churchill Downs (5f, by 2 3/4, defeating Thiskyhasnolimit, Red Rally, Dublin, Criminal Offense, Congar, Horst, Prospective Union, Victorystart, Harley\'s Heat).'

Warning: sprintf() [function.sprintf]: Too few arguments in /data/19/1/60/63/1875552/user/2038041/htdocs/vinery/Admin/upload_stallion.php on line 305
Query was empty

Right above the Warning is an echo of the two variables used in the sprintf().

Here is the section from my php file:

        $idrr = GetSQLValueString($_POST['id1'], "int");
        $associated_horse = GetSQLValueString($_POST['associated_horse1'], "int");
        $year = GetSQLValueString($_POST['year1'], "text");
        $age = GetSQLValueString($_POST['age1'], "int");
        $starts = GetSQLValueString($_POST['starts1'], "int");
        $first = GetSQLValueString($_POST['first1'], "int");
        $first_sw = GetSQLValueString($_POST['first_sw1'], "int");
        $second = GetSQLValueString($_POST['second1'], "int");
        $second_sp = GetSQLValueString($_POST['second_sp1'], "int");
        $third = GetSQLValueString($_POST['third1'], "int");
        $third_sp = GetSQLValueString($_POST['third_sp1'], "int");
        $age_notes = GetSQLValueString($_POST['age_notes1'], "text");
        $age_text = GetSQLValueString($_POST['age_text1'], "text");
        $earned = GetSQLValueString($_POST['earned1'], "text");
        echo ("idrr = " . $idrr . "<br/>");
        echo ("age_notes = " . $age_notes);




        $insertSQL = sprintf("UPDATE race_records SET age_notes = $age_notes WHERE rr_id = %s", GetSQLValueString($idrr, "int"));

        mysql_select_db($database_XXXXXX, XXXXXX);
        $Result = mysql_query($insertSQL, $HDAdave) or die(mysql_error())

I can’t figure out why this particular UPDATE wont work.
Can anyone see what I’m doing wrong?

  • 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-27T12:54:36+00:00Added an answer on May 27, 2026 at 12:54 pm

    You might want to put backticks or single quotes around $age_notes and %s

    $insertSQL = sprintf("UPDATE race_records SET age_notes = '$age_notes' WHERE rr_id = '%s'", GetSQLValueString($idrr, "int"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting the following error message ERROR 1064 (42000): You have an error
I keep getting the following error when trying to parse some html using BeautifulSoup:
What is wrong with the statement below? I keep getting the following error message....
I keep getting the following error message when I run my code in debug.
I keep getting the following error: AttributeError: Caribou instance has no attribute 'on_key_up' The
When I deploy my application to GoogleAppEngine I keep getting the following error Uncaught
I'm using Visual Studio 2008 Express edition, and keep getting the following error: Cascadedisplay.h(4)
I keep getting an error with the following bit of code. It is probably
With the following code, I keep getting error C2535 when I compile. It's complaining
I'm trying to use SHFHKeychainUtils in my project, but I keep getting the following

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.