Help for this page

Select Code to Download


  1. or download this
    if (defined $status)    {
        $statement = $dbh->prepare('SELECT COUNT(*) FROM name WHERE status
    + = "' . "$status" . '"') or die DBI->errstr;
    ...
        $sth->execute() or die print "Couldn't execute statement: $DBI::er
    +rstr; stopped";
        my $count = $sth->fetchrow_array();
        $sth->finish;
    
  2. or download this
    Couldn't execute statement: You have an error in your SQL syntax near 
    +'DBI::st=HASH(0x8298e60)' at line 1;