Hi ..
Thank u....i learn a lot from u.....
i cleared my doubt for inserting data....
when i retreiving data from database, how can i get values from php page to html page by using ajax...i mean same concept in reverse formate...
Thank u once again...
Im kinda more like a beginner at this but i am familliar of using ajax (thanks to marky and the mct team who taught me)
if you try to access the post.php page directly, what prints out in this page is what is forwarded by this script to your page. in short, your page gets the contents of the post.php and display it there.
now to display the data, you must edit the line 52 to meet your query requirements. as soon as this is done, you edit the post.php to get the data and print it on the post.php page. automatically, the script will get the data from the post.php page and displays it to your current page.
example:
you have a page with an item and its button with "get item data" as its value. hidden with that button is a hidden input tag with that item's id. when you click the button, the id is passed to the script which it will then pass to the post.php. then the post.php will display the data you need using that item's id number on the post.php page. then, since its the purpose of ajax, the script will get the data from the post.php page then on to your page.
it's simple as that actually.