POST A QUERY over http
Posted: Thu Mar 26, 2015 11:00 am
Hi!
I'm trying to communicate with an oracle DB using a web layer.
So, on my server i have this PHP file:
I post using the POST function a Query with a pipe and a letter that identify the type of query.
tPost contain this string: UPDATE TF_MASCHI SET UBICAZIONE='TX2' WHERE NUMERO='999999' AND TIPO='D 25'|U
Obviously nothing work....
I think it's the GET function in the php file that don't match with my post function....
Can anyone help me?
I'm trying to communicate with an oracle DB using a web layer.
So, on my server i have this PHP file:
Code: Select all
<?
function eseguiSQL ($conn, $querySQL)
{
$stmt0 = oci_parse($conn, $querySQL);
oci_execute($stmt0);
return($stmt0);
}
// get string from caller
$stringa=$_GET['stringa'];
$array = explode("|", $stringa);
$querySQL=$array[0];
$operazione=$array[1];
etc etc...
?>
Code: Select all
POST tPost to URL "http://portal.tenax.spa/app_sql_oracle.php"
Obviously nothing work....

I think it's the GET function in the php file that don't match with my post function....
Can anyone help me?