|
In your javascript code:
1)query the value of the input date
2)using ajax, post the value of step 1 to your php code
3)using ajax and a callback function, retrieve the MySQL data (preferably in JSON or XML format)
4)if a value of false is returned supplant an explanitory string into your data variable
5)insert data into your DOM
In your php code:
1)test the value sent from ajax, and strip, or convert any characters that could be used to exploit security holes
2)apply necessary conversions to the data so that it corresponds to how you structured your database
3)connect to your MySQL to retrieve the necessary records
4)if records are not already structured as JSON or XML, convert them to one of these formats for transmission
5)post the record back to your ajax on the clients browser
Your welcome
__________________
Allwisend bin ich nicht, doch viel ist mir bewursst
-Goethe
|