Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 958 Bytes

README.md

File metadata and controls

36 lines (33 loc) · 958 Bytes

Bangalore-Team-8

connect_error) { die("Connection failed: " . $conn->connect_error); } //Fetching the GET params $SmsSid = $_GET["SmsSid"]; $From = $_GET["From"]; $To = $_GET["To"]; $Date = $_GET["Date"]; $Body = $_GET["Body"]; $insert_sql = sprintf("insert into tablename values ('%s', '%s', '%s', %s, '%s')", $SmsSid, $From, $To, $Date, $Body); if ($conn->query($insert_sql) === TRUE) { echo "Your message was processed successfully"; } else { echo "Some error occured while processing your request"; } $conn->close(); ?>