Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FUNCTION datos(){
- $codigo= 1;
- $salida = ARRAY();
- $c = oci_connect('own_pascua', '123', 'localhost/orcl');
- $s = oci_parse($c, "call lista_materiasn(:codigo,:ref_cursor)");
- $refcur = oci_new_cursor($c);
- oci_bind_by_name($s, ':codigo', $codigo);
- oci_bind_by_name($s, ':ref_cursor', $refcur, -1, OCI_B_CURSOR);
- oci_execute($s);
- oci_execute($refcur);
- WHILE($filas = oci_fetch_array($refcur, OCI_ASSOC)) {
- $salida[] = $filas;
- }
- RETURN $salida;
- }
Advertisement
Add Comment
Please, Sign In to add comment