I wrote this one an other site but it's down
Anyways here it goes
PHP Code:
<?php
$true = 10;
if ($true == 10)
{
echo "You are correct";
} else {
echo "This answer is false";
} ***91;COLOR="Yellow"***93;closes the echo***91;/COLOR***93;
?> ***91;COLOR="Yellow"***93;ends the php***91;/COLOR***93;
<?
declares it's php code
$true = 10;
makes a variable which is 10
if ($true == 10)
Checks if true equals 10, the == checks that
{
opens a new statement
echo "You are correct";
prints "You are correct"
} else {
closes the echo code, then checks if $true is something else than 10
echo "This answer is false";
Prints "This answer is false" if $true doesn't equal 10
}
closes the echo
?>
ends the PHP code
That's about it
Cya