MYSQL INSTERT INTO error
#4

Firstly, stop being excessive with your spacing, it just makes it harder to read!

Secondly, you can't just use graves (`) and then stop using them. You need to use them for all field names in a query. Here's your fixed code:

If the code below doesn't work, increase the size of your string to something that exceeds 128 characters, i.e: 200.

pawn Код:
format(String, sizeof(String), "INSERT INTO `Email_Adresai` (`Prisijungimo_Vardas`, `Email_Slaptazodis`, `Email`) VALUES ('%s',  '%s', '%s')", Vardas, params, Email);
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: 2 Guest(s)