 <p>You shouldn't be storing all that HTML in the database. Only store the <em>data</em> in the database. I'm not sure whats going on exactly since I don't understand that language but you should be storing each of those numbers in a column in your database and the querying for them in PHP. You will have a variable for each of those numbers and then you print those out in your table format. Something as simple as the line below will work:</p> <pre><code>&lt;tr&gt;&lt;td&gt; &lt;/td&gt; &lt;td align='right'&gt;&lt;?php echo $variable_name; ?&gt;&lt;/td&gt;&lt;/tr&gt; </code></pre>