Re: issues with calling methods twice in a row
| From: | Jim Lucas | Date: | Fri, 08 Feb 2008 21:18:55 +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-268982@lists.php.net to get a copy of this message | ||
nihilism machine wrote:
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.Here you say that the method takes five (5) variables.
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);But here, you are only putting 4 variables in the method call. Are you missing something that is required? The fifth field perhaps?
any ideas? only the first method gets executed?-- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare