Hi

I finally got some of my PostAuthHook code to work.
PostAuthHook sub {no strict 'subs'; \
                                my $reply = bless $_[1], Radius::Radius ;\
                                my $attrid = $$reply->get_attr('AttrID');
$$reply->delete_attr('AttrID');\
                                my $q = "SELECT attribute, value FROM
newradius WHERE ((attr_id=$attrid) AND(newradius.type='R'));";\
                                print $q."\n";\
                                }

Note the "no strict 'subs'" and bless statement.

Now, I want access to the SQL DB via the PostAuthHook without opening a new
handle to the SQL DB if possible.
The SQL stament above will return data, two columns wide, and any number of
rows deep.
What do I need to do to get the values?


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Remi Godin             Escape Communications Corp.
Jr. Systems Support        665 Stafford Street
                          Winnipeg, MB   R3M 2X7

[EMAIL PROTECTED]       Tel: 1-877-372-2730
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to