I have an application that assigns room numbers to student when they are registered.
If one person is using the software to register students it works perfectly but when multiple people are using the software through peer to peer network it sometimes give problems by assigning the same room number to multiple students while it should not work like that. Each student should have unique room number from the database. My database is mysql.
adolf23
0
Newbie Poster
Recommended Answers
Jump to PostMake sure your table does not accept the same roomnumber twice by making a unique index for it.
Jump to PostI think it is a bit overkill if you just want to assure that the roomnumber is not used twice, but perhaps your table structure requires locks, can't really say without knowing the structure.
All 8 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
adolf23
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
adolf23
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
adolf23
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
adolf23
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.