I can't get a simple IF statement to work

This seems like a simple IF statement, but something is apparently wrong as I get the following error each time. Can you help?

Parse error: syntax error, unexpected ‘}’ in /home3/recordau/public_html/oil-testimonials/tools/approveUsers.php on line 812

Thanks,

Rob


if ($distID) {

$showAddress = "http://www.oil-testimonials.com/$distID";
}

else {

$showAddress = "ERROR - You did not supply your distributor number during registration.  Please login and edit your account details.  There you will see a field that you can enter your number into.  Your custom referral address will not work until you complete this step." 
} // end else statement

Thank you so much!

You’re missing a semi-colon at the end of the second $showaddress = line :slight_smile:

At the very least, you need a semicolon at the end of your “$showAddress” line.