Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.