PHP scripting problem
|
Hi to all. I encountered a problem in my PHP programming. How do I create a form where when the user enters a bookname in the textbox in the form, the query will search the database for the bookname and display all details of the bookname specified in the textbox. If you do not understand my explanation, it works like this: the layout of the form: __________ Enter Bookname: |__________| <-- this rectangle is the textbox _________ | search | |_________| <-- this is the search button ________________________________________________________________________ ______________ Enter Bookname: |___Book 1_____| --> user enters book 1 in the textbox ________ | search | -----> user clicks the search button |________| ________________________________________________________________________ Upon clicking the search button, the form will display the following details of book 1: Book_name: Book_1 Price: $12.00 Author: John Book_name and author has a varchar datatype, length 99. Price is a float datatype in my Mysql database ________________________________________________________________________ If anyone knows the php code to my problem, please post the entire php code. Thank you. |
Re: PHP scripting problem
Link |
by
on 2008-06-23 12:13:40
|
The program looks to be a homework assignment. This is not a place to get people to do your homework for you. If you have specific questions, feel free to ask them. However, you may not ask people to do your work for you. Thanks for understanding. |