<?php
$query = "SELECT offstd FROM test WHERE id = '1' ";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$offstd = $row["offstd"];
// Make a MySQL Connection
$query = "SELECT offstd, count(offstd) As Sumoffstd FROM customer WHERE offstd";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$Sumoffstd = $row["Sumoffstd"];
echo '.$offstd.'-'.$Sumoffstd.'.$offstd-$Sumoffstd;
?>
$query = "SELECT offstd FROM test WHERE id = '1' ";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$offstd = $row["offstd"];
// Make a MySQL Connection
$query = "SELECT offstd, count(offstd) As Sumoffstd FROM customer WHERE offstd";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$Sumoffstd = $row["Sumoffstd"];
echo '.$offstd.'-'.$Sumoffstd.'.$offstd-$Sumoffstd;
$sum = '.$offstd.'-'.$Sumoffstd.'.$offstd-$Sumoffstd;
?>