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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:22:01+00:00 2026-05-31T03:22:01+00:00

i am trying to insert data as a test for this JQuery plugin Jquery-in-place-editor

  • 0

i am trying to insert data as a test for this JQuery plugin Jquery-in-place-editor, which doesn’t work so far with me, here is what i did :

  1. i connected my server with mysql database, and to test the db
    functionality, i made a table called test with tow fields id
    which is PK and auto increment, and userUserName with datatype
    varchar.
  2. i pluged the jquery plugin as the instructions says and the script works perfectly for the css and editing

the problem is when i change any text , not thing happend on the server.

here is my code:

JQuery Plugin

 $(document).ready(function(){
        $("#editme1").editInPlace({
            url: "server.php",
            params: "name=david",
        });
    }); 

the name=david came with the script and it used on his demo test file, and because i am still rookie i do not know wether it affect my script or not.

Server.php (server-side file)

function Sqlconnection(){
$connection= mysql_pconnect("localhost","root","123") or die (mysql_error());
$db= mysql_select_db("reservebox",$connection) or die (mysql_error());
            }


Sqlconnection();

 $update = $_POST['update_value'];

$insert ="insert into test (userUserName) values ($update)";

mysql_query($insert) or die (mysql_error());

the $_POST['update_value'] should be the value that comes when i change the div editme1

div editme1

   <p id="editme1">
                    This example is with 
no options except for a callback 
that will handle the value when the edit is complete.
                </p>

can some explaing to me where do i go wrong here , i made sure the the jquery is attached and so the other required files , i used the demo file with script and it doesn’t work also !

  • 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-31T03:22:02+00:00Added an answer on May 31, 2026 at 3:22 am

    Did you add the library js file ?

    <script type="text/javascript" src="../lib/jquery.editinplace.js"></script>
    

    And you have an extra comma in your question, this can also break the plugin to load.
    Look at the comment line :

    $(document).ready(function(){
        $("#editme1").editInPlace({
            url: "server.php",     //  you mentioned the file name as 'Server.php'
            params: "name=david", // this comma should not come here
        });
    }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am trying to use jQuery to insert data from an ajax call.
I'm trying to insert data into my SQlite3 database (this works via the command
I am trying to use javascript, without framework(prototype, jQuery,etc), to insert data passed from
I'm trying to use an in-memory SQLite database to test my data layer which
I am trying to insert data about an item's price from an HTML form
Language: OO PHP 5+ DB: MySQL I am trying to insert data from a
I was trying to insert new data into an existing XML file, but it's
I’m trying to bulk insert data to SQL server express database. When doing bcp
I received a MySQL data dump and am trying to insert the data into
I have a form that is trying to insert some data into an SQL

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.