| 123456789101112131415161718192021222324 |
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $database = "gozap";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $database);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- date_default_timezone_set('Asia/Kolkata');
- $monthFirstDate = date('Y-m-01');
- $monthLastDate = date('Y-m-t');
- $currentDateTime =date("Y/m/d H:i:s");
- header('Content-type: application/json; charset=utf-8');
- header("Access-Control-Allow-Origin: *");
- header("Access-Control-Allow-Headers: *");
- // echo "Connected successfully";
- // INSERT INTO `details` (`DetailID`, `Name`, `PhoneNumber`, `Email`) VALUES (NULL, 'Suriya', '1234567890', 'suriya@cygnusa.com');
- ?>
|