View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-23-2019 , 16:34   Re: Problem MySQL T_LoadData
Reply With Quote #13

Use:
PHP Code:
if (results.AffectedRows
Insert, update and delete queries returns only how many rows were affected.

Search for "update on duplicate key" ("insert into table on duplicate key set") - you update the data if exists or insert if don't. You can check my Activity plugin for a snippet as well.
__________________

Last edited by Ilusion9; 08-23-2019 at 17:03.
Ilusion9 is offline