Page 1 of 1

looping

Posted: Sun Nov 13, 2005 6:22 pm
by elecktricity
just a quick question im trying to make a loop to make this code a bit smaller

Code: Select all

<?PHP
if ($num=='5' OR $num=='10' OR $num=='15' OR $num=='20') {
//$num continues to a hundred or so
echo $num;
echo '<br>';
}
?>

Posted: Sun Nov 13, 2005 6:26 pm
by ody

Posted: Sun Nov 13, 2005 7:09 pm
by josh

Posted: Sun Nov 13, 2005 7:48 pm
by elecktricity
thats actually kinda freaky how similiar my code is to his... same variable name same place were the comment is displays the variable then adds a page break, well thanks for the link