c5.6.3.3: Very strange variable assignment from block controller to it's view.

Permalink
I am creating a block for a landing page when returning from PayPal. I have all my data stored in a mySQL table called "servers". The field in question is "billPeriod". In my block's controller>>on_page_view() I retrieve the relevent record from the database.

NEVER MIND~
I staired at my code for the 2nd day now and found a very stupid error in my code but very hard to see 3 small trees while looking through the forrest;
$BillPeriod = 1;
if($servers["billPeriod"] = "Annually") $BillPeriod = 11;
if($servers["billPeriod"] = "Semi-Annually") $BillPeriod = 6;
if($servers["billPeriod"] = "Quarterly") $BillPeriod = 3;
Every one of these lines equte to true so $BillPeriod always results in 3.

ThomasJ