note 100366 added to pdostatement.rowcount
| From: | (et]mr2tuningDOTch) | Date: | Mon, 11 Oct 2010 17:54:53 +0000 |
| Subject: | note 100366 added to pdostatement.rowcount | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173143@lists.php.net to get a copy of this message | ||
The easiest way to get the row's affected by your select statement is the following way I
guess:
class salesreport extends reports {
//put your code here
function __construct(){
// Start kunden table query
$this->kundenSQL = "Select * from T_Kunden";
// Start zahlungen table query
$this->zahlungenSQL = "Select * from T_Zahlungen";
// Start auftrag table query
$this->auftragSQL = "Select * from T_Auftrag";
}
function setCustomerTyp($typ){
if($typ == 0){
$this->kundenSQL = $this->kundenSQL ." WHERE \"Name der Firma\"
<> ''";
}elseif($typ == 1){
$this->kundenSQL = $this->kundenSQL ." WHERE \"Name der Firma\" ==
''";
}
}
function getCustomers(){
try {
$db = new db_odbc();
$sql = $db->con->query($this->kundenSQL);
$this->customers = $sql->fetchAll(PDO::FETCH_ASSOC);
$this->cCount = count($this->customers);
}
catch(PDOException $e)
{
echo $e->getMessage();
}
}
}
----
Server IP: 69.147.83.197
Probable Submitter: 91.138.30.96
----
Manual Page -- http://www.php.net/manual/en/pdostatement.rowcount.php
Edit -- https://master.php.net/note/edit/100366
Del: integrated -- https://master.php.net/note/delete/100366/integrated
Del: useless -- https://master.php.net/note/delete/100366/useless
Del: bad code -- https://master.php.net/note/delete/100366/bad+code
Del: spam -- https://master.php.net/note/delete/100366/spam
Del: non-english -- https://master.php.net/note/delete/100366/non-english
Del: in docs -- https://master.php.net/note/delete/100366/in+docs
Del: other reasons-- https://master.php.net/note/delete/100366
Reject -- https://master.php.net/note/reject/100366
Search -- https://master.php.net/manage/user-notes.php