MYSQL INSTERT INTO error
#1

hey, I do not understand why an error here..

Код:
CMD:email( playerid, params[] )
{
	new
		String[ 128             ],
		Vardas[ MAX_PLAYER_NAME ],
		Email [ 256             ]
	;

	if( sscanf( params, "ss", Email, isnull ( params ) ) ) return SendClientMessage(playerid, -1, ""HEX_RAUDONA"- "HEX_BALTA"/email [EMAIL] [PRISIJUGNIMO_SLAPTAZODIS]");

    GetPlayerName( playerid, Vardas, sizeof( Vardas ) );
	
	format       ( String, sizeof( String ), "INSERT INTO `Email_Adresai` (Prisijungimo_Vardas, Email_Slaptazodis, Email) VALUES ('%s',  '%s' , '%s')" ,Vardas, params, Email );
	mysql_query  ( String );
	
	SendClientMessage( playerid, -1, " "HEX_RAUDONA"- "HEX_BALTA"--" );
	return 1;
}
Mysql_Log Error:

Код:
[22:10:55] CMySQLHandler::Query(INSERT INTO `Email_Adresai` (Prisijungimo_Vardas, Email_Slaptazodis, Email) VALUES ('oooooo', md5 ( 'renisil@inbox.lt lolas' ),) - An error has occured. (Error ID: 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 '' at line 1)
What's wrong? Thank you..
Reply


Messages In This Thread
MYSQL INSTERT INTO error - by RenisiL - 07.04.2011, 12:03
Re: MYSQL INSTERT INTO error - by iJumbo - 07.04.2011, 12:11
Re: MYSQL INSTERT INTO error - by RenisiL - 07.04.2011, 12:23
Re: MYSQL INSTERT INTO error - by Calgon - 07.04.2011, 12:32

Forum Jump:


Users browsing this thread: 1 Guest(s)