sc_lookup(idmalla, "select max(IDMALLA) from MALLACURRICULAR WHERE IDCARRERA = {descarrera}");
if ({idmalla[0][0]} === false)
{
echo "Access error. Message =". {my_data_erro};
}
else
{
sc_lookup(fecha,"Select FECHAVIGENCIA from MALLACURRICULAR where IDMALLA = {idmalla[0][0]}");
if ({fecha[0][0]} === false)
{
echo "Access error. Message =". {my_data_erro};
}
else
{
/**
* Display a message after an AJAX call
*/
// Javascript message parameters
$javascript_title = 'PRUEBA'; // Javascript message title
$javascript_message = "Entro".{fecha[0][0]}; //'This is a test message.'; // Javascript message contents
// Display javascript message
sc_ajax_message($javascript_message,$javascript_title); //{fecha[0][0]}
{malladescri} = "Malla Curricular Asignada";//: N? {idmalla[0][0]} {fecha[0][0]}";
}
}
THe second SQL is a valid statement, it returns a date, but in this event the message just print “Entro”