Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/09/2005, 05:55
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
yo lo haría así...

Código PHP:
if(empty($_POST['vble1'])) {$vble2="NULL";} else { $vble2 "'" $_POST['vble1'] . "'"; }
mysql_query("INSERT INTO tabla1 (dato0,dato1) VALUES ('".$_POST['dato']."',".$vble2.")",$conexion);