Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/11/2005, 07:27
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
La otra opción es que las variables que no están entre apostrofes hacer que si son vacias se reemplacen por NULL. Ej.:

Código PHP:
if (empty($Xid_acceso)) {
  
$Xid_acceso "NULL";
}

if (empty(
$Xman)) {
  
$Xman "NULL";
}
if (empty(
$Xnumacceso)) {
  
$Xnumacceso "NULL";
}
if (empty(
$Xpeso)) {
  
$Xpeso "NULL";