
04/12/2007, 16:11
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 1
Antigüedad: 17 años, 3 meses Puntos: 0 | |
commit PHP firebird Debian GNU/Linux 4.0
MENSAJE #5549 Por Hecbuma, Mar 4 de Dic de 2007 15:51 (CST)
-------
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:
$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 '%" . c . "%';";
$q=ibase_query($tr,$sql);
ibase_commit($tr);
ibase_close($c);
header("Location:alumnos.php");
Bases De Datos> |