R real_computer_mac Guest Jan 11, 2009 #1 How would I use PHP and a HTML form to call a function or php page that searches a database and displays the results on the same page as the form?
How would I use PHP and a HTML form to call a function or php page that searches a database and displays the results on the same page as the form?
U unknownsk8r Guest Jan 11, 2009 #2 you dont need AJAX. You can use just the simple SELECT command like so: SELECT * FROM `tablename`
A Angela Q Guest Jan 11, 2009 #3 You'll want to do that with AJAX, which uses javascript. PHP can only display new data by reloading the page. http://aa.wrs.yahoo.com/_ylt=A0oG75pWU2lJFYoAFMfjPwx.;_ylu=X3oDMTBybnZlZnRlBHNlYwNzcgRwb3MDMQRjb2xvA2FjMgR2dGlkAw--/SIG=11tm69eeg/EXP=1231725782/**http%3a//www.w3schools.com/ajax/default.asp
You'll want to do that with AJAX, which uses javascript. PHP can only display new data by reloading the page. http://aa.wrs.yahoo.com/_ylt=A0oG75pWU2lJFYoAFMfjPwx.;_ylu=X3oDMTBybnZlZnRlBHNlYwNzcgRwb3MDMQRjb2xvA2FjMgR2dGlkAw--/SIG=11tm69eeg/EXP=1231725782/**http%3a//www.w3schools.com/ajax/default.asp