Jump to content

Dynamically Display Rows of Data On Page


xander85

Recommended Posts

Hey All,

 

I'm creating a website that will emulate a cash register system and I'm using a barcode scanner to input products. The barcode scanner simply scans the barcode in as plain text and will put it in the focused form. I can then look up the product based on the code and display the product information. However, how can I make it so I can scan multiple products and dynamically display them on one page after looking up the product information. Example.

 

1. Scan product.....

2. Look up product information from mysql db

3. Display information for product here - $9.99

4. Look up product information form mysql db

5. Display information for product here - $10.99

etc....

 

However I want this to be displayed on one website and not save the information back to the database until you tell it to.

 

OR

 

Can I somehow use a "temp" table to do this?

Link to comment
https://forums.phpfreaks.com/topic/67478-dynamically-display-rows-of-data-on-page/
Share on other sites

I can't think of much of a way except use the website URL to store the barcode in its plain text and so that if you scan another product, the products you scanned before wouldn't disappear. Afterwards, you just tell the DB to query all the products in the URL, of course you'll have to do some splitting of the URL.

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.