Help for this page
# top level of code: my $loc_query = "SELECT location FROM demstock2 WHERE ds_id=?"; ... #...much later... my $sth = $dbi->prepare( $loc_query ) # or die... $sth->execute( $id ) # or capture error