Help for this page

Select Code to Download


  1. or download this
    if (defined $status)    {
        $statement = qq(SELECT COUNT(*) FROM name WHERE status = $status);
    }else{ 
        $statement = qq(SELECT COUNT(*) FROM name WHERE age = "4");
    }
    
  2. or download this
    $sth = $dbh->prepare($statement);
    $sth-> execute();