Help for this page

Select Code to Download


  1. or download this
    error() unless $username =~ m< ^ \w+ \z >x;
    
  2. or download this
    my $sth = $dbh->prepare(
                   'SELECT some,rows FROM your_table WHERE id = ?'
    ...
    $sth->execute( 
        int rand $dbh->selectrow_array('SELECT MAX(*) FROM your_table')
    );