Nextrek
Diff Revisions
516
vs
517
for /Android/SmartCharging/endPoints/nightly/add_commento.php
|
@@ -9,9 +9,9 @@ |
9 |
9 |
|
require_once("repositories/UserRepository.php"); |
10 |
10 |
|
require_once("utilities.php"); |
11 |
11 |
|
|
12 |
|
- |
$servername = "localhost"; |
|
12 |
+ |
/*$servername = "localhost"; |
13 |
13 |
|
$username = "smartcharging"; |
14 |
|
- |
$password = "LXRLBaEAuRr7M7jY"; |
|
14 |
+ |
$password = "LXRLBaEAuRr7M7jY";*/ |
15 |
15 |
|
|
16 |
16 |
|
//$params = json_decode($_REQUEST["params"], true); |
17 |
17 |
|
|
|
@@ -24,7 +24,7 @@ |
24 |
24 |
|
$comment_repo; |
25 |
25 |
|
|
26 |
26 |
|
try { |
27 |
|
- |
$conn = new PDO("mysql:host=".$servername.";dbname=smartcharging", $username, $password); |
|
27 |
+ |
$conn = new PDO("mysql:host=".DB_SERVERNAME.";dbname=".DB_NAME, DB_USERNAME, DB_PASSWORD); |
28 |
28 |
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
29 |
29 |
|
//echo "Connesso con successo al DB"; |
30 |
30 |
|
|