Commit 06deb530 authored by Cyrille Georgel's avatar Cyrille Georgel

re-organising stuff

parent 6ec329d2
......@@ -279,11 +279,14 @@ Class OVHBills extends Api
$sth = $dbh->prepare("SELECT SUM(totalPrice) as total
FROM billsDetails
WHERE billId = ? AND description LIKE ?");
WHERE billId = ? AND description LIKE ?
OR billId = ? AND description LIKE ?");
$sth->execute(array(
$bill,
'Caution%'
'Caution%',
$bill,
'Remboursement caution%'
));
$data = $sth->fetchObject();
......
......@@ -36,6 +36,11 @@ $bills->run();
OVHBills is released under the MIT license. See the bundled LICENSE file for details.
## Also see
TelcoDirectCallsOVH which allow to get details about your phone calls from OVH API.
https://gitlab.com/BlueRockTEL/TelcoDirectCallsOVH
## Author
Cyrille Georgel < cyrille@bluerocktel.com >
......
......@@ -14,7 +14,7 @@ try
$dsn = "mysql:host={$dbServer};port={$dbPort};dbname={$dbName};charset={$dbCharset}";
$dbh = new PDO($dsn, DB_USERNAME, DB_PASSWORD);
$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING ); # debug
# $dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); //prod
# $dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); #prod
}
catch (PDOException $e)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment