Hi,
I think you need to use wild card % and rephrase your sql query.
like %'.$head.'%
Are you not useing the . operator to create a dynamic query?
You can learn more about how to create a dynamic query at http://www.tutorialindia.com/php_mysql/php_mysql_update.php without . (Dot) operator your query is not dynamic and hence the error.
Also, be sure to create an sql date in correct format.
You need to
1. Create a dynamic query using the . dot operator.
2. Create the date correctly
You can remove the date field temporarily and update the query after sometime once your basic update is working. Feel free to send me a direct message in case of ny problem. I will answer within one day.
Hope this helps.