The second selection of the Store Procedure does not run ... I did not find the bug ...
<? require("viskoo_conexao/conectar.php");?>
<?php
$consulta="CALL SPMenuConsulta";
$resultado = mysql_query($consulta)
or die("Falha na SP (1)");
?>
<?php
while ($linha = mysql_fetch_assoc($resultado))
{
$ValorAtributo = $linha[ValorAtributo];
$CodAtributoValor = $linha[CodAtributoValor];
echo $ValorAtributo." ($CodAtributoValor)<br>";
?>
<? $resultado2 = mysql_query( 'CALL SpMenuSubConsulta(5)' ) or die(mysql_error()); ?>
<?php
while ($linha2 = mysql_fetch_assoc($resultado2))
{
$ValorAtributo = $linha2["ValorAtributo"];
echo "--Sub".$ValorAtributo."<br>";
}
?>
<?
}
?>