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 Link to comment https://forums.phpfreaks.com/topic/134650-solved-can-someone-please-fix-this/ Share on other sites More sharing options...
rhodesa Posted November 28, 2008 Share Posted November 28, 2008 if (empty($frozenr)) { Link to comment https://forums.phpfreaks.com/topic/134650-solved-can-someone-please-fix-this/#findComment-701066 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 Link to comment https://forums.phpfreaks.com/topic/134650-solved-can-someone-please-fix-this/#findComment-701067 Share on other sites More sharing options...
adamjones Posted November 28, 2008 Author Share Posted November 28, 2008 Cheers. Link to comment https://forums.phpfreaks.com/topic/134650-solved-can-someone-please-fix-this/#findComment-701070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.