adamjones Posted November 28, 2008 Share Posted November 28, 2008 Hi. I have this code; <?php session_start(); if ($frozenr == ) { echo("No reason given"); } else echo("$frozenr"); } ?> And get this error; Parse error: syntax error, unexpected ')' in /home/designby/public_html/clients/frozen.php on line 65 Quote Link to comment Share on other sites More sharing options...
rhodesa Posted November 28, 2008 Share Posted November 28, 2008 if (empty($frozenr)) { Quote Link to comment Share on other sites More sharing options...
GKWelding Posted November 28, 2008 Share Posted November 28, 2008 or <?php session_start(); if ($frozenr == "") { echo("No reason given"); } else echo("$frozenr"); } ?> or <?php session_start(); if (!isset($frozenr)) { echo("No reason given"); } else echo("$frozenr"); } ?> Take your pick Quote Link to comment Share on other sites More sharing options...
adamjones Posted November 28, 2008 Author Share Posted November 28, 2008 Cheers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.