[HELP] Incomplete processing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jande
Forum Newbie
Posts: 2
Joined: Wed Nov 03, 2010 1:09 am

[HELP] Incomplete processing

Post by Jande »

Hi,

I have a script which processes some inputs from users. Users may send in the data at any time.

However, I noticed that I have problems with some data inserted into my DB being incomplete.

Hence, I am wondering if it is because there are new data coming in before the script completes the previous action? If so, how can I prevent it?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: [HELP] Incomplete processing

Post by requinix »

Depends on how the code works and what "incomplete" means...

Actual code is easiest to read.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: [HELP] Incomplete processing

Post by pickle »

If you have 2 users posting at the same time, your script is invoked twice in 2 different processes. The same script can be running multiple times concurrently.

Your incomplete data is most likely due to some bug in the script.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply