-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.php
41 lines (30 loc) · 1.07 KB
/
store.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
$servername = "localhost";
$username = "root";
$password = "";
$databasename = "detectivescode";
$conn = new mysqli($servername, $username, $password, $databasename);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// $servername = "localhost";
// $username = "detectivescode_rsdecode";
// $password = "1G~}zj95b{gF";
// $databasename = "detectivescode_rsdecode";
// $conn = new mysqli($servername, $username, $password, $databasename);
// if ($conn->connect_error) {
// die("Connection failed: " . $conn->connect_error);
// }
$dataFromStorage = $_POST['dataFromStorage'];
// echo $dataFromStorage;
$sql = "INSERT INTO infos (networkname, imei, brandname, modal,email, payment,trems )
VALUES ('$dataFromStorage[networkName]', '$dataFromStorage[ingresarIMEI]', '$dataFromStorage[brandNameItem]', '$dataFromStorage[brandNameItemModal]', '$dataFromStorage[email]','$dataFromStorage[cardPayment]','$dataFromStorage[tremsPolicy]')";
// print_r($sql);
// die();
if ($conn->query($sql) === TRUE) {
echo 1;
} else {
echo 0;
}
$conn->close();
?>