insert .php for angular check to inser db with json methods
<?php $data = json_decode(file_get_contents("php://input"));$con=mysqli_connect("localhost","root","","ang");$un=mysqli_real_escape_string($con,$data->un1); $pw=mysqli_real_escape_string($con,$data->pw1); $query="INSERT INTO user('UN','PW') VALUES('".$un."','".$pw."')";mysqli_query($con,"INSERT INTO user(UN,PW) VALUES('".$un."','".$pw."')"); error_log("Oracle database not available!" . $query, 0); ?>
No comments:
Post a Comment