I am using oci_bind_by_name()
.
oci_bind_by_name($stid, ":post1", $_POST['post1']);
oci_bind_by_name($stid, ":post2", $_POST['post2']);
oci_bind_by_name($stid, ":post3", $_POST['post3']);
oci_bind_by_name($stid, ":post4", $_POST['post4']);
...
Is it possible to do this dynamically in PHP, for all $_POST
keys call oci_bind_by_name()
of the same name?
Just to simplify my code, as I have 50 or so calls to oci_bind_by_name()
.