Hi guys,
I have two pages, main_sales.php and main_customer.php. From this point onwards, when i say company, i actually mean customer because our customers are usually made up of companies and very seldom are individuals.
When user views a sales record in main_sales.php, he gets to see the details of a particular transaction. One such detail is the company name. For this page, i have managed to make the company name a hyperlink so that if user wants to know the details of the company(like contact details), he can click on it and all those details about that company will be processed by main_customer.php and displayed for the user to view. What i want to know is that how do i write that code in main_customer.php so that when user clicks the company name in main_sales.php, he will be shown the details of this company, like the company contact person, address, contact number, etc.
.......................................................................................................
......................................................................................................
I just need to know what codes i need to write in main_customer.php. Is it sql queries? What is it that's needed in main_customer.php? Any help would be much appreciated. What's the code in main_customer.php to handle the userclick on the hyperlink on main_sales.php?