Help for this page

Select Code to Download


  1. or download this
    while ( $sth->fetch() )
    {
    ...
            last;
          }
    }
    
  2. or download this
    my ($count) = $dbh->selectrow_array("SELECT count(*) FROM table WHERE 
    +LEFT(colum,3) = 'foo'");
    if ($count > 0) {
       print "Do what you need here";
    }