Re: Strange Bizzare Problem

From: Date: Sat, 14 Jul 2001 03:24:52 +0000
Subject: Re: Strange Bizzare Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57850@lists.php.net to get a copy of this message
Is it possible that your database is ot updating immediately but on a delayed basis..some databases can be set to update on a delayed or immediate basis. If the update varaiables are derived from the database then these will not be updated as well and the redirect will go thru, unless you put in some kind of error checking. rm --- Somazx Interesting <somazx@home.com> wrote: > > I'm running into this really odd, seemingly > illogical problem: > > > Background: > > This is an on-line course made up of lots of pages, > some have forms, some > don't. The pages which have forms all submit to > single php script (called > submit.php) which processes the submitted form, > placing the submitted > answers into a database and updating a variable > which tracks which pages of > the course have been completed by the user. > > The submit.php page, once it has processed the > submitted form data, then > does a http redirect so the student is served the > next page of the course. > > > Problem: > > About 1 out of 20 times submit.php doesn't update > the database, or update > the variables tracking student progress, but does > the http redirect. > > submit.php looks something like this: > > if ($fsubmit){ > update database; > update variable; > http redirect to next page; > } > > Conclusion: > > Is it possible that PHP can skip php instructions > before an http redirect > semi-randomly? The same problem occurs with output > buffering on or off. > > Any theories on what the problem may be? > > Thanks, > Andy. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

« previous php.general (#57850) next »