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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:08:06+00:00 2026-06-07T23:08:06+00:00

I would like to implement an ‘add note’ feature on my website that will

  • 0

I would like to implement an ‘add note’ feature on my website that will appear to work effortlessly to the user.

The idea is simple: There will be a textfield next to every item. On-change the text entered into the textfield will automatically be updated in the database, the user won’t have to hit ‘save’ or click any buttons to load or save the note.

(Initially, every item will have a blank text field next to it)

What would be the best way to implement this?

<?php
//Create mysql connect variable
$conn = mysql_connect('samplesource.com', 'example', 'pass');

//kill connection if error occurs
if(!$conn){
    die('Error: Unable to connect.' . '<br>' . mysql_error());
}
//connect to mysql database
mysql_select_db("mydb", $conn);

session_start();
$userid = $_SESSION['id'];

$results = ("SELECT * FROM notes WHERE userid='$userid'");
?>

<html>
<head>
</head>
<body>

<textarea style="resize:none; width:300px; height:200px;"> </textarea>

</body>
</html>
  • 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-07T23:08:07+00:00Added an answer on June 7, 2026 at 11:08 pm

    This is a call for a jQuery ajax call to update your database. From the ajax call you can hook the onblur event and then update the note in the database, remember that this will cause a lot of backend strain and will cause the MySql server to get bogged down with the constant updates. You may have to look into some kind of caching and buffered save as well to keep this from happening.

    Jquery Ajax:
    http://api.jquery.com/jQuery.ajax/

    Jquery OnChange:
    http://api.jquery.com/change/

    $(document).change( function() {
        $(".sometext").blur( function() { 
            //make ajax call to update database
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to implement the following feature onto my site. When a user
I would like to implement a tool that generates graphs whose memory will be
I would like to implement a feature that only delivers messages to devices at
I would like to implement a function with R that removes repeated characters in
We would like to implement a web form that automatically saves content at regular
I would like to implement a function that takes as input a size n
I would like to implement a save feature, which allows my users to save
I would like to implement an algorithm which will find the bounding rectangles of
Would like to implement some solution for adding tags to a certain user profile
I would like to implement an apps that allow users save the webpage including

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.