title: Invalid query: You have an error in your SQL syntax; special characters
body: <p>I am doing php and writing some code to insert data into different tables at the same time. I wrote a foreach loop and one part of my code is as follows:</p>
  
  <pre><code> while ($datarow = dbgetrow($dataresult)) {
                      if ( $dotcount &gt; $datanumrows) {
                              showarchivestatus(" .", true);
                              $dotcount = 1;
                      }
                      $sqlvalues = "";
  </code></pre>