Quote:
Originally Posted by seyz4all
exactly a DB...
the user will input the id and the result will display in textfields, not on the plain page,
like 3 other textfields will show on the bottom frame with results, so that i can insert them into another table..
hope u undastand this
Right, this is getting clearer by the post.
The user enters a number and then you retrieve the info from the DB using that number and display the results on the page.
I would tackle this as follows:
1. A page with the the text box and button, not necessarily in a form.
2. Button calls some JS that uses AJAX to pass the number entered to a PHP script.
3. PHP script checks that it is a number, if it is NOT it returns a message to that effect. If it IS a number then the SQL is executed and the results returned as the output.
I recommend you read the following:
PHP DataObject AJAX Data Querying
This should get you started with some code. If you get stuck with the specifics then post your code here and I'll take a look for you. I've done this sort of thing a lot, but I don't want to simply give away the code - you will learn more by doing it yourself.
Cheers
nathj