Jump to content

[SOLVED] some advice on how to display data in a table with a list box


Recommended Posts

I have a web page that displays data in a table which can be sorted dynamically. I also have a list box with a list of categories (engines, generators, all categories, etc.)

 

My goal is to have the user select a category that would display the products in that category. Or if they want to display all, they can.  Can I execute queries from the list box? If so, can someone give me a little example snippet on how to do it. (I was thinking maybe some IF THEN statemenst and include' sql.php';) but I am not sure if this is feasible???

 

I know this can be done in javascript but I am not that experience in that language.  But I was able to use javascript to sort the table dynamically becasue I found some instructions on how to do it. But I cant find any script on this topic. So I am a little stuck on how to go about  doing this. Any help is appreciate.  Javascript or PHP??

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.