I have got this statement:
$query="INSERT INTO error_report(task_id,url_is_route, forbidden_word, google_host_fail, google_cache_fail, google_title_fail, google_element_fail, robots_noindex_nofollow, xrobots_noindex_nofollow, title_fetch_warn, h1_fail,h2_fail,h3_fail ,h1_warn ,h2_warn, h3_warn)
VALUES (".$this->task_id.",0,0,0,0,0,0,0,0,0,0,0,0,0,0)";
mysql_query($query) or die(mysql_error());
I get this:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0,0,0,0,0,0,0,0,0,0,0,0,0,0)' at line 2
Where does the problem lie?
UPDATE
$query="INSERT INTO error_report(task_id,url_is_route, forbidden_word, google_host_fail, google_cache_fail, google_title_fail, robots_noindex_nofollow, xrobots_noindex_nofollow, title_fetch_warn, h1_fail,h2_fail,h3_fail ,h1_warn ,h2_warn, h3_warn)
VALUES ('".$this->task_id."','0','0','0','0','0','0','0','0','0','0','0','0','0','0')";
Now I get:
Incorrect integer value: '' for column 'task_id' at row 1
$queryprior to its execution and show us?$this->task_id?