Código PHP:
$sql=" INSERT INTO dosundembarque VALUES "//este si funciona
."('$codigo','$slundcompem','$slundpesoem',$txtpesoem,"
."'$slundmedem',$txtlargoem,$txtanchoem,"
."$txtaltoem,'$slundvolem',$txtvolumenem,"
."$txtundmanem,'$slubicaem','$rdigualmnjem')";
$bd->consulta($sql);
if ($rdigualmnjem == 'S')
{
$sql=" INSERT INTO dosundmanejo VALUES " //no funciona
."('$codigo','$slundcompem','$slundpesoem',$txtpesoem,"
."'$slundmedem',$txtlargoem,$txtanchoem,"
."$txtaltoem,'$slundvolem',$txtvolumenem,"
."$txtundmanem,'$slubicaem')";
$bd->consulta($sql);
}
if ($rdigualmnjem == 'N')
{
$sql=" INSERT INTO dosundmanejo VALUES " //nofunciona
."('$codigo','$slundcompmj','$slundpesomj',$txtpesomj,"
."'$slundmedmj',$txtlargomj,$txtanchomj,"
."$txtaltomj,'$slundvolmj',$txtvolumenmj,"
."$txtundmanmj,'$slubicamj')";
}