469,913 Members | 2,534 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

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
Jul 20 '20 #1
3 2912
534 Expert 512MB
An unclear question to me. Maybe refine the language and also show what you've tried so far.
Jul 20 '20 #2
9,065 Expert Mod 8TB
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.
Jul 20 '20 #3
Ishan Shah
47 32bit
In think you want to say that by selecting id you want to fetch the data from database using ajax (preloading).
Aug 5 '20 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.