title: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax"
body: <p>Through the prompt method ,i'm taking the name of the person to create a table .The method is working and the name is being parsed by the php script .But no matter what ,the table is not getting created and getting the following </p>
  
  <blockquote>
    <p>ERROR: Could not able to execute CREATE TABLE kat (Item VARCHAR(50) , Quantity INTEGER, Price REAL).<br>
    You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'kat (Item VARCHAR(' at line 1  "</p>
  </blockquote>
  
  <pre><code>echo("&lt;script type='text/javascript'&gt; var answer = prompt('Enter name'); &lt;/script&gt;");
  $na= "&lt;script type='text/javascript'&gt; document.write(answer); &lt;/script&gt;";
  $sql = "CREATE TABLE $na (Item VARCHAR(50) , Quantity INTEGER, Price REAL)"; 
  if(mysqli_query($conn, $sql)){
      echo "Table created successfully.";}
  else {
      echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn);
  }
  </code></pre>