<?php
include 'connection.php';
$qry = mysql_query( "SELECT g.totalDaily, p.COUNT(DISTINCT bodyNo) AS qty FROM grandTotal AS g, paintshop AS p ") or die('error');
while ($rows = mysql_fetch_array($qry)){
?>
<td><?php $dpu = $rows['g.totalDaily'] / $rows['qty'];
echo $dpu;?></td> <?php } ?>
i want to display the $dpu which is defect per unit..the information must get from 2 table like above codes. the problem is when i want to display it no result. i hope u guys can help me...:-/