MySQL - checking result
#1

Hi. I have problem with my query (Ban System). In debug error from query exists (like 'Duplicate entry 'xxx' for key 'host''), but in code not...
Код:
mysql_function_query(mysql, formatEx("DELETE FROM `mapa_bany` WHERE `gracz` = '%s' OR `host` = '%s'", gracz, gracz), false, "", "");
 if(mysql_errno() != 0 && adminid != -1) return SendClientMessage(adminid, -1, "Wystąpił problem. Ban prawdopodobnie nie istnieje lub podano błędne dane.");
Help guys, I don't know why this doesn't work. I tried to do this with inline, but my "inline callback" wasn't called. Also tried using mysql_affected_rows() and mysql_warning_count(). Getting the same.

Thanks in advance. Waiting for answer.

PS I'm using MySQL plugin (by BlueG and Pain123) R34.
Reply


Messages In This Thread
MySQL - checking result - by Michalec - 24.11.2013, 00:38
Re: MySQL - checking result - by maddinat0r - 25.11.2013, 12:13
Re: MySQL - checking result - by Michalec - 25.11.2013, 13:57
Re: MySQL - checking result - by maddinat0r - 25.11.2013, 15:32
Re: MySQL - checking result - by Michalec - 25.11.2013, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)