Help for this page

Select Code to Download


  1. or download this
    $sth = $db->prepare("SELECT the_name FROM the_table WHERE id=?");
    $sth->execute(3);
    my ($the_name) = $sth->fetchrow_array;
    
  2. or download this
    my ($the_name) = $dbh->selectrow_array(<<SQL, undef, 3);
    SELECT the_name FROM the_table WHERE id = ?
    SQL