Jump to content

Need a way to load database information on right side based on selection on left


DeX

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.