Help for this page

Select Code to Download


  1. or download this
    $SQL='select * from table where :name=:value';
    $SQL=~s/:(\w+)/$data{$1}/g;
    
  2. or download this
    $sth = $dbh->prepare('select * from table where name=?');
    $rv=$sth->execute($data{name});