I am just getting started in learning custom functions and am having a bit of a problem. I cannot figure out why
function hello($text, $text2) {
echo "Testing<br>";
echo "$text<br>";
echo "$text2";
}
hello(asdf, two);
will work, but
function verify($text) {
echo "$text<br>";
}
if ($result->numRows() == "0") { // If incorrect, retry.
verify(Login Failed);
//echo "argh!";
}
wont.
Removing the comment from echo "argh!"; and adding it to verify(Login Failed); will display argh!