{"id":2028,"date":"2015-06-09T13:34:34","date_gmt":"2015-06-09T13:34:34","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2028"},"modified":"2015-06-09T13:34:34","modified_gmt":"2015-06-09T13:34:34","slug":"errors","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/databases-programming-in-c\/mysql\/errors","title":{"rendered":"Errors"},"content":{"rendered":"<h4>\nDiscovering Error That Occured<br \/>\n<\/h4>\n<p>\nUse this line after something doesn&#39;t work to discover what the problem was\n<\/p>\n<pre>\r\n<code>\r\n\tstd::cout &lt;&lt; &quot;Database error: &quot; &lt;&lt; mysql_errno(mysql1) &lt;&lt; &quot; - &quot; &lt;&lt; mysql_error(mysql1) &lt;&lt; std::endl;\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discovering Error That Occured Use this line after something doesn&#39;t work to discover what the problem was std::cout &lt;&lt; &quot;Database error: &quot; &lt;&lt; mysql_errno(mysql1) &lt;&lt; &quot; &#8211; &quot; &lt;&lt; mysql_error(mysql1) &lt;&lt; std::endl; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-2028","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2028"}],"version-history":[{"count":1,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2028\/revisions"}],"predecessor-version":[{"id":2029,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2028\/revisions\/2029"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}