Date: 03/16/00
- Next message: Alexander Aulbach: "Re: [PHPLIB] Very long session val = Invalid SQL + MySQL Error 2006"
- Previous message: Milen A. Radev: "Re: [PHPLIB] Brain Fart..."
- In reply to: Rod Taylor: "[PHPLIB] Brain Fart..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
> $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.
- Next message: Alexander Aulbach: "Re: [PHPLIB] Very long session val = Invalid SQL + MySQL Error 2006"
- Previous message: Milen A. Radev: "Re: [PHPLIB] Brain Fart..."
- In reply to: Rod Taylor: "[PHPLIB] Brain Fart..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

