Help for this page

Select Code to Download


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