Весь код большой, выдёргиваю интересующие куски:
mysql_connect($host, $user, $password) or die("Cannot connect to MySQL.");
mysql_select_db($database) or die("Cannot connect to the base.");
$sql = "SELECT * FROM `table-1` .`Number` ASC LIMIT 0, 10000 ";
$result = mysql_query($sql) or die(mysql_error());
while($row=mysql_fetch_assoc($result))
{
echo '<table class = table-ms>';
echo '<td class = tdnumber>'.$row['Number'].'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['Ol']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['Des']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QPA']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QBP']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QFP']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QBM']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QRU']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['QFF']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['CH']).'</td>';
echo '<td class = tdQ>'.htmlspecialchars_decode($row['SE']).'</td>';
echo '</table>';
}
var con = el.innerHTML;
if (con == ' '||con ==" "||con ==''||con ==""||con ==null){var con = '0';}else{}