I have the following code:
<?php
include("conexao.php");
$sql = mysql_query("SELECT COUNT(*)
FROM escola e
WHERE coordenador IN (SELECT ec.coordenador
FROM escola_coordenador ec
WHERE ec.coordenador = '1')
AND uf = 'PR' AND situacao = 'contratado'");
$row = mysql_fetch_array($sql);
$total = $row['COUNT(*)'];
echo $total;
?>
It shows the amount of record in the bank.
I need a form for the user to type: the coordinator number and the UF, and then the amount in total $ appears.
Can anyone help me?