<?
if ($test=='AM') {
$test='NZ'; //the swap
echo $test; //prints the value 'NZ' to the screen
} ?>
swap NZ for AZ but it wont print out after the IF statment
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If you're testing for 'AZ' then you probably need to change this:
to this:
Mac
Code: Select all
if ($test=='AM') {Code: Select all
if ($test == 'AZ') {- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK