DeX Posted December 14, 2011 Share Posted December 14, 2011 I'm trying to make a page where users can select a company which will be assigned to their purchase order. So they have a purchase order for lumber and one for metal. They choose lumber, then select which company is associated with that and that company's information with logo will show up when that purchase order is printed out. The question I have about the page is I'd like to have all the companies listed on the left and when you click the company, the right side changes to show the information already entered including contact information and logo. They can edit this information. What is the best way to load the information on the right side based on left side selection? Javascript? Ajax? Some PHP based system I'm unaware of? All the information will be coming from the database. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/253127-need-a-way-to-load-database-information-on-right-side-based-on-selection-on-left/ Share on other sites More sharing options...
jcbones Posted December 14, 2011 Share Posted December 14, 2011 AJAX which is Javascript. AJAX calls to the server for a file, which can be PHP. PHP file queries the database, output is returned to the AJAX call. Some great tutorials here. I'd recommend any of the first 3. Quote Link to comment https://forums.phpfreaks.com/topic/253127-need-a-way-to-load-database-information-on-right-side-based-on-selection-on-left/#findComment-1297696 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.