Discussion in 'PHP' started by elina, Apr 14, 2011.
can you provide a simple php code for search feature please.
is your site DB powered or just a site and you thinking of a crawler ? [if the secind one, google gives one free but with thier logo ]
i got help with that thanks.
but can you help me with this thing now >i have this page where the employee will search for a customer by thier surname then the name and surname of the customer will appear on the same page. but im trying to have a page linked to that so that when the employee clicks on the name it would take them to the cusotmer page and will show all cusomter details with thier payement detials and would have a delete, update and add payment button.
could you please help me with the code pleaseeee
i cannot tell an exact code nwothout DB structures, but i can tell you the logic
first make a php page to sho the required details,
it takes ID as an argument to show the contect information viewCustomer.php?id=3
then in you search genertor, link the search items to that page
ex: user search for "McIntosh"
your search script generate
<a href="viewCustomer.php?id=<the_id_from_db">Peter McIntosh</a>
Separate names with a comma.