Need a little help here with the following:

I am using Jodometer to create a up counting odometer which has the 100% effect that I need in looks and functionality.

I need to be able to call the starting value out of a MYSQL database.

Any ideas? Source code included:

HTML Code:
$con = mysql_connect("localhost","geewizz_counter","cardiff1984");
if (!$con)
  die('Could not connect: ' . mysql_error());

mysql_select_db("geewizz_counter", $con);

$result = mysql_query("SELECT * FROM counternumber");

echo "<table border='1'>


while($row = mysql_fetch_array($result))
  echo "<tr>";
  echo "<td>" . $row['number'] . "</td>";

  echo "</tr>";
echo "</table>";


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
	<title>Web Counter - Gee Wizz Designs</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script src="jquery-1.2.6.min.js" type="text/javascript"></script>
	<script src="gwd_counter.js" type="text/javascript"></script>
	<script type="text/javascript">
window.onload = function() {
  document.getElementsByTagName('p').style.background = 'red';
. . . 
document.write( <?php echo $row[number]; ?>);
. . .


	<script type="text/javascript">
increment: 1.8, 
formatNumber: true, 
numbersImage: 'images/numbers.png', 
spaceNumbers: 2, 
formatNumber: true, 
commaImage: 'images/comma.png'})

	<style type="text/css" media="screen">
			border:1px solid #4D4D4D;

	<table border="0" bgcolor="#4D4D4D">
    <td align="right"><img src="images/pound.png"/></td>
	 <td align="left"><div class="counter2"></div></td>