
27/05/2010, 10:38
|
| | Fecha de Ingreso: octubre-2009
Mensajes: 45
Antigüedad: 15 años, 5 meses Puntos: 3 | |
Respuesta: usar oci8 para oracle $conexion = oci_connect('freew', 'freew', 'localhost/orcl');
if (!$conexion) {
$e = oci_error();
print htmlentities($e['message']);
exit;
}
$nickname=$_POST['nombre_usuario'];
$stid = oci_parse($conexion, "SELECT nickname FROM usuarios");
$r=oci_execute($stid);
if(!$r){
$e = oci_error($stid);
trigger_error(htmlentities($e['message'], ENT_QUOTES),E_USER_ERROR);
}
echo "resultado\n";
while($row=oci_fetch_array($stid)){
echo $row[0];
}
ese es el codigo que uso para probar, pero no me muestra nada :S |