Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/04/2009, 11:43
alexluz
 
Fecha de Ingreso: agosto-2007
Mensajes: 10
Antigüedad: 16 años, 8 meses
Puntos: 0
Respuesta: Update con select para sacar el nombre de la tabla

Esto te puede servir
function modificar( )
{

$SqlUpdate="update USER_IMED.DOLLAR_LOGIN SET END_DATE=sysdate where ID = (select max(ID) from USER_IMED.DOLLAR_LOGIN WHERE ID_USER=$_REQUEST[no])";
echo "<pre>$SqlUpdate</pre>";
$sth = oci_parse ($GLOBALS["dbh"],$SqlUpdate);
if (oci_execute($sth, OCI_DEFAULT)) {
oci_commit($GLOBALS[dbh]);
} else {
$erra = oci_error($sth);
save_sql_debug_data($SqlUpdate, "ERROR: ${erra['code']} ${erra['message']}");
echo "<!-- ERROR: ${erra['code']} ${erra['message']} -->";
}
}