I'm working on a pretty complex script but what I'm having the most trouble with is an IF THEN segment which I've simplified below:
<?php
if ($id = 1)
{ $variable = one ;}
if ($id = 2)
{$variable = two ;}
if ($id = 3)
{$variable = three ;}
else
{$variable = none ;}
print $variable;
?>
(The $id variable is called in the URL in this simpler version of what I'm attempting)
Anyway, any variable I use, be it $id=1, $id=2, $id=3 or none at all, I keep getting the results from the last element: "three".
I'm sure there's something I need to add here yet I havent found any answers in the manual so far.
Does anyone know?
thank you!