aki os dejo como creo la ( lista/menu):
Código PHP:
{if $conectat==true}
<form action="controlhist.php" method="post">
<label for="name">Data Control:</label>
<input type="submit" class=
"button" value="Login" name="button" />
<select name="any">
{section name=sect2 loop=$resultatsdata step=1}
<option value="val">{$resultatsdata[sect2].data}</option>
{/section}
</select>
</form>
{/if}
Código PHP:
$sql = " SELECT p.testdate, p.milk, p.fat,p.scc,p.prot,p.herd_id, h.herd_id, h.codi,a.parity,a.herd_id
FROM production p , herd h, ag_parity a
WHERE p.testdate= (VARIABLEQUE RECOJO DEL FORM/LISTMENU) (----AKI EL PROBLEM
and a.herd_id= h.herd_id
LIMIT 0 , 30 ";
:P