in reply to DBI:mysql date conversion question

use placeholders, What are placeholders in DBI, and why would I want to use them?

Replies are listed 'Best First'.
Re^2: DBI:mysql date conversion question
by Anonymous Monk on Sep 22, 2008 at 01:17 UTC
    my $sth = $dbh->prepqre(q~ ( indate, siteid,serial,contract,installdate) values (CURDATE(), ?, ?, ?, STR_TO_DATE(?,'%m/%d/%Y') ) ~); $sth->execute( $frame_siteid, $frame_serial, $frame_contract, $frame_i +nstalldate );
      my $sth = $dbh->prepqre(q~
      should be
      my $sth = $dbh->prepare(q~ insert into frame
        I type with heavy accent :D