le007 Posted October 15, 2007 Share Posted October 15, 2007 Below isn't working - Any ideas? <br> HERE; if ($type = "work"){ echo "No need"; } else { echo "Work starts:". $timestart; } echo <<<HERE <br> Quote Link to comment https://forums.phpfreaks.com/topic/73365-solved-if-statement/ Share on other sites More sharing options...
kenrbnsn Posted October 15, 2007 Share Posted October 15, 2007 You need to use "==" not "=" in the if statement. A single "=" is for assignment, a double "==" is for comparison. Ken Quote Link to comment https://forums.phpfreaks.com/topic/73365-solved-if-statement/#findComment-370138 Share on other sites More sharing options...
le007 Posted October 15, 2007 Author Share Posted October 15, 2007 Nice Ken - thanks! Quote Link to comment https://forums.phpfreaks.com/topic/73365-solved-if-statement/#findComment-370140 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.