Get values from database by its ID using php,javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hansika
    New Member
    • Jul 2020
    • 1

    Get values from database by its ID using php,javascript

    I want to know how to get values in other text box(from database) by user input its id in textbox by using php ajax xml mysql
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    An unclear question to me. Maybe refine the language and also show what you've tried so far.

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Do you know all those technologies? If not then start by forgetting about AJAX and XML (for now), you only need those if you want to have a dynamic page that updates without reloading.

      I'd start with a single page with a form on it to allow the user to enter the ID; POST the data back to the same form and include a PHP script that, if there is POST data available uses it in a query to the database and displays the result below the form.

      Remember to use bast practices in preventing SQL injection attacks, start as you mean to go on with a secure solution.

      Comment

      • Ishan Shah
        New Member
        • Jan 2020
        • 47

        #4
        In think you want to say that by selecting id you want to fetch the data from database using ajax (preloading).
        Last edited by Rabbit; Aug 5 '20, 02:54 PM. Reason: External link removed

        Comment

        Working...