Help for this page

Select Code to Download


  1. or download this
    $sth = $dbh->prepare("select count(*) from table_one");
    $sth->execute();
    ...
    $sth = $dbh->prepare("select count(*) from table_two");
    $sth->execute();
    $row2 = $sth->fetchrow_array;
    
  2. or download this
    $db->query('select count(*) from table_one')->into($row1);
    $db->query('select count(*) from table_two')->into($row2);
    
  3. or download this
    $db->select(table_one => '*')->into($row1);
    $db->select(table_two => '*')->into($row2);