Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: datatype from SQL

by jck (Scribe)
on Jun 23, 2006 at 17:36 UTC ( [id://557274]=note: print w/replies, xml ) Need Help??


in reply to Re: datatype from SQL
in thread datatype from SQL

well, i tried your suggestion, changing $newUID to $newUID->[0], but it gave me the following error:
Can't use string ("1") as an ARRAY ref while "strict refs" in use at n +ewsedit.pl line 61.
so i think that $newUID must be the scalar ref, not an array ref, right?

Replies are listed 'Best First'.
Re^3: datatype from SQL
by VSarkiss (Monsignor) on Jun 23, 2006 at 17:42 UTC
Re^3: datatype from SQL
by derby (Abbot) on Jun 23, 2006 at 17:45 UTC

    What version of DBI are you using and which DBD driver? You're use of $in{param} leads me to believe you're also using cgi-lib (instead of CGI) and may have a very old installation.

    -derby

    Update: And is this an XY Problem ... are you just trying to get create the next UID ... if so, most DB's have an auto-incrementing field feature.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557274]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-24 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found