{"id":7244,"date":"2014-06-03T22:50:00","date_gmt":"2014-06-03T22:50:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-t_string-php-insert-into-mysql-collection-of-common-programming-errors\/"},"modified":"2014-06-03T22:50:00","modified_gmt":"2014-06-03T22:50:00","slug":"unexpected-t_string-php-insert-into-mysql-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-t_string-php-insert-into-mysql-collection-of-common-programming-errors\/","title":{"rendered":"Unexpected T_STRING PHP Insert Into MySQL-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7fab9f1e1483365348c4a15a08b3ee27?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser586011<\/p>\n<p>I am receiving a syntax error on the following line, have replaced variables with real values and tried different arraignments, any suggestions appreciated:<\/p>\n<pre><code>$query = \"INSERT INTO happyturtle (time, ad1) VALUES (00987,'www.hats.com')\";\n<\/code><\/pre>\n<p>error itself is &#8220;Parse error: syntax error, unexpected T_STRING in \/home\/content\/53\/7382753\/html\/Summer\/wootsummer.php on line 71&#8221;<\/p>\n<p>wootsummer.php is bellow<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>user586011 I am receiving a syntax error on the following line, have replaced variables with real values and tried different arraignments, any suggestions appreciated: $query = &#8220;INSERT INTO happyturtle (time, ad1) VALUES (00987,&#8217;www.hats.com&#8217;)&#8221;; error itself is &#8220;Parse error: syntax error, unexpected T_STRING in \/home\/content\/53\/7382753\/html\/Summer\/wootsummer.php on line 71&#8221; wootsummer.php is bellow<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7244","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7244"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7244\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}