07.06.2014, 01:57
Quote:
Agora vai '-'
A tabela estava colada com as colunas PHP код:
PHP код:
PHP код:
|
pawn Код:
strcat(Query,"INSERT INTO `banidos` (ip_ban,ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desban_Mes,Desban_Ano,Ban_Hora,Ban_Minuto,Ban_Segundo,Desban_Hora,Desban_Minuto,Desban_Segundo,user_admin) VALUES ('%s','%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s');");
mysql_format(MySQL, Query,sizeof(Query),Query, IpPlayer, motivo,Dia, Mes, Ano, DesbanDia, DesbanMes, DesbanAno, Hora, Minuto, Segundo, DesbanHora, DesbanMinuto, DesbanSegundo, Admin);
mysql_query(MySQL,Query,false);
pawn Код:
strcat(Query,"INSERT INTO `banidos` (ip_ban,ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desban_Mes,Desban_Ano,Ban_Hora,Ban_Minuto,Ban_Segundo,Desban_Hora,Desban_Minuto,Desban_Segundo,user_admin)");
strcat(Query," VALUES ('%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s');");
mysql_format(MySQL, Query,sizeof(Query),Query, IpPlayer, motivo,Dia, Mes, Ano, DesbanDia, DesbanMes, DesbanAno, Hora, Minuto, Segundo, DesbanHora, DesbanMinuto, DesbanSegundo, Admin);
mysql_query(MySQL,Query,false);
PHP код:
[21:07:26] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos`(ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desban_Mes,D' at line 1
[21:08:35] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos`(ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desban_Mes,D' at line 1
[21:12:45] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos`(ip_ban,ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desba' at line 1
[21:13:53] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos`(ip_ban) VALUES ('192.168.0.15')' at line 1
[23:13:11] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos`(ip_ban,ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desba' at line 1
[23:14:50] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `banidos` (ban_motivo,Ban_Dia,Ban_Mes,Ban_Ano,Desban_Dia,Desban_Mes,' at line 1