You need ==, not just =... also, [status] is nothing... try $status...
"Jess Hunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a short bit of code that contains an if/else that is causing me some > trouble, I am sure that the answer is staring me straight in the face, and I > am not seeing it. > > Can someone take a look and see where I am coding wrong? > > <SNIPPET> > > if ("[status]='active'"){ > print ("the active line\n"); > } else { > print ("inactive line\n"); > } > > </SNIPPET> > > Thanks in advance > > Jess -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php