if statement OOP
Posted
by Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2010-05-01T02:47:41Z
Indexed on
2010/05/01
2:57 UTC
Read the original article
Hit count: 310
php
I have the following code
/* Errors exist, have user correct them */
if($form->num_errors > 0)
{
return 1; //Errors with form
}
/* No errors, add the new account to the */
else if($database->addLeagueInformation($subname, $subformat, $subgame, $subseason, $subwindow, $subadmin, $subchampion, $subtype))
{
return 0; //New user added succesfully
}
else
{
return 2; //Registration attempt failed
}
I want to add the following to it
$databases->addLeagueTable($name)
This should happen at the same time as addLeagueInformation. Any ideas?
© Stack Overflow or respective owner