On the how many input box in red, I'm going to allow a user to enter any specific number... based on that number it needs to calculate whatever the $seconds variable is equal too at the time. Than the output should echo the seconds, minutes, hours fields. I hope that makes sense... Any help would be greatly appreciated. Thanks in advance.
$results = sql::clean_row("
sum(quantity) as quantity,
(sum(duration_minutes) * 60) + sum(duration_seconds) as duration_seconds
//echo $results['duration_minutes'] . " " . $results['duration_seconds'] . " " . $results['quantity'] . "<br />";
$seconds = floor($results['duration_seconds'] / $results['quantity']);
$minutes = $seconds/60;
echo "<br />Quantity " . $results['quantity']. " | time in seconds ($seconds) / 60 = total time in minutes ($minutes)";
<form action="<?php echo matry::here(array('page'=> 'cal')); ?>" method="POST">
<tr><td><?php inp('how_many'); ?></td><td> * <?php echo $seconds; ?></td></tr>
<tr><td>This many Seconds:</td></tr>
<tr><td>This many Minutes:</td></tr>
<tr><td>This many Hours:</td></tr>
<tr><td>This many FTE:</td></tr>
<tr><td><input type="submit" value="Calculate" name="submit" /></td></tr>