PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 5:03 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PHP Mysql best practise
PostPosted: Thu Oct 03, 2013 5:01 am 
Offline
Forum Newbie

Joined: Thu Oct 03, 2013 12:34 am
Posts: 1
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


Top
 Profile  
 
PostPosted: Thu Oct 03, 2013 6:37 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
What is the purpose of this temporary table? What are you trying to achieve?

_________________


Top
 Profile  
 
PostPosted: Thu Oct 03, 2013 4:48 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
PostPosted: Wed Oct 23, 2013 3:19 pm 
Offline
DevNet Resident
User avatar

Joined: Sat Jun 08, 2002 1:24 pm
Posts: 1207
Location: Florida
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group