Re: issues with calling methods twice in a row
| From: | Jochem Maas | Date: | Fri, 08 Feb 2008 21:37:00 +0000 |
| Subject: | Re: issues with calling methods twice in a row | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268986@lists.php.net to get a copy of this message | ||
nihilism machine schreef:
i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the other although its all the same but the variable. ex: $auth = new auth(); $auth->CreateUser("fake email", 1, "fake name", 4); $auth->CreateUser("fake email", 2, "fake name", 4); $auth->CreateUser("fake email", 3, "fake name", 4); $auth->CreateUser("fake email", 4, "fake name", 4); $auth->CreateUser("fake email", 5, "fake name", 4); any ideas? only the first method gets executed?no-one can smell the problem with the info you gave. what is the code for createUser()? what is does you error log contain? are you displaying errors? (you should probably do so in a dev environment) are the 2nd + subsequent calls being made and nothing is entering in the DB OR are the 2nd + subsequent calls not occuring at all?