Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/05/2010, 10:38
CarlosMC
 
Fecha de Ingreso: octubre-2009
Mensajes: 45
Antigüedad: 14 años, 7 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