Good day all
I would like to know what your thoughts are for the following:
I have 2 tables tb_serials and tb_temp_serials. The user scans in the serial number and it writes it to temp_serials, which gets displayed on reload in a table.
When he is done scanning he clicks finish and it copies the serials to the tb_serials and clears the tb_temp_serials.
I am positive this is not the right way for me to do it, and if there are more then one user scanning serials it cause an issues. Obviously i can't create 10 tb_temp_serials tables.
What would your suggestions be in this regards?
Any help would be most appreciated.
Thanks!
Adrian
PHP Mysql best practise
Moderator: General Moderators
Re: PHP Mysql best practise
What is the purpose of this temporary table? What are you trying to achieve?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP Mysql best practise
Correct, this is not the right way to do it!adrianharris wrote:I am positive this is not the right way for me to do it, and if there are more then one user scanning serials it cause an issues.
A better plan would be: The user scans in the serial number which gets displayed on reload. I assume that the serial number is form data. User confirms the serial number is correct and clicks finish. The serial number is saved to the tb_serials table.
Tell us more about how the scan is done.
(#10850)
Re: PHP Mysql best practise
I agree with Christopher. Knowing how the scan is done would be great.
That said, if you just want to allow the user to confirm that the entered information is correct, why can't you keep this in a session until he's finished confirming the entries?
That said, if you just want to allow the user to confirm that the entered information is correct, why can't you keep this in a session until he's finished confirming the entries?