Subject Re: Multiple select inside procedures and PHP???
Author Svein Erling Tysvær
Hei John!

> >$FirmaQuery2 = "EXECUTE PROCEDURE SEL_PROC_V_PRESENTASJON
> >('$useKategori')";
> >
> >$Result = odbc_do($Connection, $FirmaQuery2); /***** Gives 1 row
> >random ****/

Well, I know nothing about PHP, but in general I think you (should)
use

EXECUTE PROCEDURE SEL_PROC_V_PRESENTASJON ('$useKategori')

with executable procedures returning maximum one row and

SELECT ... FROM SEL_PROC_V_PRESENTASJON ('$useKategori')

with selectable procedures containing SUSPEND and returning 0..many
rows (i.e. use the procedure almost as if it was a table or view).

HTH,
Set