Ver Mensaje Individual
  #1  
Antiguo 04-12-2007
hecbuma hecbuma is offline
Registrado
 
Registrado: dic 2007
Posts: 1
Reputación: 0
hecbuma Va por buen camino
commit PHP firebird

hola estoy haciendo una aplicacion con firebird".0/interbase y php en un
servidro apache ubuntu... todo funciona bien pero pero a la hora de hacer un
DELETE o un INSERT en alguna tabla no realiza ninguna accion no regresa ningun
error el commit no se realiza.. aqui esta mi codigo y espero que me puedan
ayudar:
Código PHP:
$nom $_GET['nom'];
$ns $_GET['nc'];
$c $_GET['c'];
$gr $_GET['gr'];
/*echo $nom . " " . $ns . " " . $c . " " . $gr;*/
$c=ibase_pconnect("localhost:/usr/bases/PRESTAMOS.FDB",'sysdba','masterkey');
$tr=ibase_trans("IBASE_WRITE",$c);
$sql="UPDATE alumno SET no_cuenta='" ns "', nombre='" nom "', grupo='"
gr "' where no_cuenta like '%" "%';";
$q=ibase_query($tr,$sql);
ibase_commit($tr);
ibase_close($c);
header("Location:alumnos.php"); 

Última edición por jhonny fecha: 04-12-2007 a las 22:56:37. Razón: Etiqueta [PHP]
Responder Con Cita