Another SQL Problem...
#4

pawn Код:
new Query[ 129 ];
format( Query, 129, "INSERT INTO `Banlist` (`IP`, `Name`, `Reason`, `Admin`, `BanDate`) VALUES ('%s', '%s', '%s', '%s', '%s')", GetPlayerIpEx( u_P ), pName( u_P ), s_R, pName( playerid ), Date( ) );
db_query( g_dbKeptAlive, Query );
Column and Table name inside `` and values inside ' '. When using INSERT INTO you must define Columns in which to store values before giving values.
Reply


Messages In This Thread
Another SQL Problem... - by aRoach - 03.04.2012, 12:02
Re: Another SQL Problem... - by blank. - 03.04.2012, 12:05
Re: Another SQL Problem... - by aRoach - 03.04.2012, 12:09
Re: Another SQL Problem... - by [MG]Dimi - 03.04.2012, 12:13
Re: Another SQL Problem... - by aRoach - 03.04.2012, 12:16
Re: Another SQL Problem... - by Edvin - 03.04.2012, 12:18
Re: Another SQL Problem... - by aRoach - 03.04.2012, 12:19
Re: Another SQL Problem... - by blank. - 03.04.2012, 12:19
Re: Another SQL Problem... - by Edvin - 03.04.2012, 12:21
Re: Another SQL Problem... - by [MG]Dimi - 03.04.2012, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)