Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: DBI, SQL and Dates

by aufrank (Pilgrim)
on Aug 07, 2002 at 15:27 UTC ( #188354=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $table = 'uregisternew';
    my @fields = qw( country firstname lastname userid password address1 c
    +ity state province zippostal email phone favorites remaddr gender inc
    +ome dob occupation age );
    my $fields = join(', ', @fields);
    ...
    $sth = $dbh->prepare($sql);
    $sth->execute();
    $sth->finish();
    
  2. or download this
    my $table_name = $dbh->quote_identifier(uregisternew);
    my @fields = qw( country firstname lastname userid password address1 c
    +ity state province zippostal email phone favorites remaddr gender inc
    +ome dob occupation age );
    my $fields = join(', ', map { $dbh->quote_identifier($_) } @fields);
    ...
    $sth = $dbh->prepare($sql);
    $sth->execute();
    $sth->finish();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2023-03-23 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?