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> 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 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! Link to comment https://forums.phpfreaks.com/topic/73365-solved-if-statement/#findComment-370140 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.