Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: DBI, SQL and Dates

by aufrank (Pilgrim)
on Aug 07, 2002 at 15:27 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found