Help for this page

Select Code to Download


  1. or download this
    my $statement = $dbh->prepare( "SELECT Questions, ID from QA;" );
    $statement->execute();
    ...
       print qq`
       <li><a href="[script_name]?case=2&id=$id">$question</li>`
    }
    
  2. or download this
    my $id = $cgi->param( 'id' );
    my $statement = $dbh->prepare( qq`SELECT Questions, Answers from QA wh
    +ere ID = "$id";` );
    ...
    <h2>$question</h2>
    <p>$answer</p>`
    }