I cannot write a script that will receive data sent from the client (android) and then verify it with the Oracle database, then send a response to the client that a pair has been found and the client will be logged

That's what I got at the moment

<?php error_reporting(E_ALL); $response = array(); $connect = oci_connect("", "",""); if($connect == false) { $response['status'] = 'NOT_CONNECT'; } else { $parseLogPass = oci_parse($connect, 'SELECT ID_CUSTOMER, PASSWORD FROM CUSTOMERS'); $ID_CUSTOMER = $_POST['ID_CUSTOMER']; $PASSWORD = $_POST['PASSWORD']; $ex = oci_execute($parseLogPass); if(!$ex) { $response["status"] = "FAILED"; } else { $response["status"] = "SUCCESS"; } oci_free_statement($parseLogPass); oci_close($connect); $connect = null; } echo json_encode($response); die(); ?> 

The data insertion script works fine, but the subject does not know how to finish

  • And what is not the correct work of the script? Describe if it is not difficult, it is difficult for us to reproduce the error without your database. - cheops
  • It is not completed, I simply do not know how to proceed. - test19
  • Just inserting records works - test19
  • The send structure itself, to the server $ ID_CUSTOMER = $ _POST ['ID_CUSTOMER']; $ PASSWORD = $ _POST ['PASSWORD']; as it should be otherwise - test19

0