- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
public static function ShowClaimsByManager($manager_id,$status,$offset_limit,$rows_limit){
$DBH = Registry::get('DBH');
$STH = $DBH ->prepare(
"SELECT * FROM claims,claims_status
WHERE claims.manager_id = :manager_id
AND claims.id = claims_status.claim_id
AND claims_status.status = :statusc
LIMIT :offsetl, :rowsl" );
$STH->bindParam(':manager_id', $manager_id, PDO::PARAM_STR);
$STH->bindParam(':statusc', $status, PDO::PARAM_STR);
$STH->bindParam(':offsetl', $offset_limit, PDO::PARAM_INT);
$STH->bindParam(':rowsl', $rows_limit, PDO::PARAM_INT);
$STH->execute();
$result = $STH->fetchAll(PDO::FETCH_ASSOC);
return $result;
}
guest 06.02.2015 16:28 # 0
Stallman 06.02.2015 16:46 # +2
kegdan 06.02.2015 16:51 # +1
guest 03.03.2015 10:51 # 0
bormand 03.03.2015 11:34 # 0