Re: [PHPLIB] Brain Fart... From: Fabrizio Ermini (f.ermini <email protected>)
Date: 03/16/00

>
> $getsid = new DB_Article;
> $query = "select nextval('result_seq')";
> $getsid->query($query);
>
> The query actually works as advertised, but how do I go about getting
> the returned value?
>
by far the easiest way is explicitly naming the column, i.e.

$query = "select nextval('result_seq') as result_index";
$getsid->query($query);
$getsid->p("result_index");

will print your value.
HTH

bye!

\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

  Fabrizio Ermini e-mail:
  C.so Umberto, 7 f.ermini <email protected>
  loc. Meleto Valdarno faermini <email protected>
  52020 Cavriglia (AR) ICQ UIN: 24.64.37
  ITALY

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.