{"id":7281,"date":"2014-06-03T23:34:53","date_gmt":"2014-06-03T23:34:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-column-message-in-field-list-collection-of-common-programming-errors\/"},"modified":"2014-06-03T23:34:53","modified_gmt":"2014-06-03T23:34:53","slug":"unexpected-column-message-in-field-list-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-column-message-in-field-list-collection-of-common-programming-errors\/","title":{"rendered":"Unexpected column &#39;message&#39; in &#39;field list&#39;-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to create a PHP forum page uses sessions. Every time I try to post a comment I keep getting the same error, not sure where I&#8217;m going wrong with this<\/p>\n<p>Here&#8217;s my code for the form:<\/p>\n<pre><code>session_start();\n\nif(!isset($_SESSION['user_id'])){\n\n    require('login_tools.php');\n\n    load();\n\n    }\n\n    $page_title = 'Post Message';\n\n    include('includes\/header.html');\n\n    echo \"<\/code><\/pre>\n<h1><code>Home<\/code><\/h1>\n<pre>\n\n        <br \/>You are now logged in, {$_SESSION['first_name']} \n\n{$_SESSION['last_name']}\n\n        \";\n\n    echo '\n        <br \/>Subject:<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to create a PHP forum page uses sessions. Every time I try to post a comment I keep getting the same error, not sure where I&#8217;m going wrong with this Here&#8217;s my code for the form: session_start(); if(!isset($_SESSION[&#8216;user_id&#8217;])){ require(&#8216;login_tools.php&#8217;); load(); } $page_title = &#8216;Post Message&#8217;; include(&#8216;includes\/header.html&#8217;); echo &#8221; Home You are now logged [&hellip;]<\/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-7281","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7281","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=7281"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7281\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}