Jaxel
Well-known member
Code:
$dw = XenForo_DataWriter::create('EWRmedio_DataWriter_Keywords', XenForo_DataWriter::ERROR_SILENT);
$dw->set('keyword_text', $text);
$dw->save();
"keyword_text" is defined as a UNIQUE column... I am trying to write to the table, but I want it to silently fail when it can't write to keyword_text because its not unique. I figured adding ERROR_SILENT would make the datawriter fail silently, like it did in vBulletin. However, it doesn't.
Mysqli statement execute error : Duplicate entry 'soulcaliburiv' for key 'keyword_text'