Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't find Syntax error in FROM clause Classic ASP
    primarykey
    data
    text
    <p>I've been trying to find this Syntax error but can't seem to crack it (Beginner in Classic ASP) Any help would be appreciated. This is the error message: </p> <blockquote> <p>Microsoft JET Database Engine error '80040e14'</p> <p>Syntax error in FROM clause.</p> <p>/courses/benv/2410/2013s2/3420384/assign1/show.asp, line 29</p> </blockquote> <p>Code:</p> <pre class="lang-vbs prettyprint-override"><code>&lt;% option explicit %&gt; &lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;default.asp&lt;/title&gt; &lt;link href="style.css" rel="stylesheet" type="text/css"&gt; &lt;/head&gt; &lt;body&gt; &lt;% dim pic pic = request.querystring("i") if pic="" then pic="1" %&gt; &lt;!--#include file="dbconn.asp"--&gt; &lt;div class="container"&gt; &lt;% dim sql, info 'This is where the Syntax error is. ' 0 1 2 3 4 SQL = "select Images.id, filename, location, Alphabet, Numeric "&amp;_ "from Images "&amp;pic set info=conn.execute(SQL) if info.eof then response.write "&lt;p&gt;No Data Found&lt;/p&gt;" else response.write "&lt;p&gt;" &amp;_ "id&lt;br&gt;" &amp;_ "filename&lt;br&gt;" &amp;_ "location&lt;br&gt;" &amp;_ "Alphabet&lt;br&gt;" &amp;_ "Numeric&lt;br&gt;" &amp;_ "Description&lt;br&gt;" &amp;_ "&lt;/p&gt;" do response.write "&lt;p&gt;" &amp;_ info(0) &amp; "&lt;br&gt;" &amp;_ "&lt;a href=""show.asp?i=" &amp; info(0) &amp; """&gt;" &amp;_ "&lt;img src=""images/" &amp; info(1) &amp; """&gt;&lt;/a&gt;" &amp;_ info(2) &amp; "&lt;br&gt;" &amp;_ info(3) &amp; "&lt;br&gt;" &amp;_ info(4) &amp;_ "&lt;/p&gt;" info.movenext loop until info.eof end if conn.close %&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload