php & mysql help

elina's Avatar, Join Date: Apr 2011
Newbie Member
can you provide a simple php code for search feature please.
0
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
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 ]
0
elina's Avatar, Join Date: Apr 2011
Newbie Member
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
0
ManzZup's Avatar, Join Date: May 2009
Skilled contributor
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,

ex: viewCustomer.php
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>

like that