db_insert información de retorno

Started by Dhayzon, January 30, 2019, 02:42:56 PM

Previous topic - Next topic

Dhayzon

mi código es

$result = $smcFunc['db_insert']('replace',
'{db_prefix}spirit_mejor_respuesta',
array(
'id_msg'          => 'int',
'id_topic'          => 'int',
'id_users' => 'string',
'total_votes'    => 'int'
),
array(
$msg,
$topic_id,
$users,
$votes
),
array('id_msg')
);


hago un insert todo ok pero me gustara saber como que se realizo con exito, me gustaría un mensaje de retorno tipo true o algo a si

Dhayzon

solucionado solo puse una variable con el valor de  true al final del proceso

Advertisement: