else and elseif statement
The PHP manual shows ?php only once
<?php
if ($a > $b) {
echo "a is bigger than b";
} elseif ($a == $b) {
echo "a is equal to b";
} else {
echo "a is smaller than b";
}
?>
My rules look more like this - simple working show if
<?php
if ($WADAtable->getColumnVal('sire') != '') {
?>
show content here
<?php
}
?>
1) Does the php get repeated?
2) What is the proper format to reference the table and column name
Attempt at show if else which is not even a good attempt.....
<?php
if ($WADAtable>getColumnVal("column1") == '') {
?>
1
<?php
} elseif {.$WADAtable->getColumnVal("column2") == ''
?>
2
<?php
} else { thisrequirement2
?>
3
<?php
}
?>