{"id":7247,"date":"2014-06-03T22:50:17","date_gmt":"2014-06-03T22:50:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-t_while-error-closed-collection-of-common-programming-errors\/"},"modified":"2014-06-03T22:50:17","modified_gmt":"2014-06-03T22:50:17","slug":"unexpected-t_while-error-closed-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/03\/unexpected-t_while-error-closed-collection-of-common-programming-errors\/","title":{"rendered":"Unexpected T_WHILE error [closed]-Collection of common programming errors"},"content":{"rendered":"<p>Can anybody point out what I am doing wrong in my code below? I&#8217;m getting an &#8220;UNEXPECTED T_WHILE&#8221; error.<\/p>\n<pre><code>echo '\n<\/code><\/pre>\n<table border=\"1\">\n<tr>\n<td>Events<\/td>\n<td>Category<\/td>\n<\/tr>\n<tr>\n<td>&#8216;, while ($row = mysql_fetch_assoc($queryresult)) { $title = $row[&#8216;eventTitle&#8217;]; echo $title; }, &#8216;<\/td>\n<td>&#8216;, while ($row = mysql_fetch_assoc($queryresult)) { $category = $row[&#8216;eventTitle&#8217;]; echo $category; }, &#8216;<\/td>\n<\/tr>\n<\/table>\n<p><code>';<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Can anybody point out what I am doing wrong in my code below? I&#8217;m getting an &#8220;UNEXPECTED T_WHILE&#8221; error. echo &#8216; Events Category &#8216;, while ($row = mysql_fetch_assoc($queryresult)) { $title = $row[&#8216;eventTitle&#8217;]; echo $title; }, &#8216; &#8216;, while ($row = mysql_fetch_assoc($queryresult)) { $category = $row[&#8216;eventTitle&#8217;]; echo $category; }, &#8216; &#8216;;<\/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-7247","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7247","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=7247"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7247\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}