hlmod.hu
https://hlmod.hu/

Sql mentés
https://hlmod.hu/viewtopic.php?f=9&t=27211
Oldal: 1 / 1

Szerző:  Tomos [ 2017.02.09. 16:09 ]
Hozzászólás témája:  Sql mentés

Van egy sql mentésem ami az adatokat nem akarja updatelni betölteni be tudja de updatelni nem ezt írja:

Kód:
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 'Int = "11", Mob = "11" WHERE Nev = "Teszt"' at line 1


Mi lehet a gond itt a mentes.

Kód:
public mentes(id)
{
   static Query[10048];
   new Len;
   new Name[32]; get_user_name(id, Name, 31);
   
   Len += formatex(Query[Len], charsmax(Query), "UPDATE `teszt` SET Ero = ^"%i^", ",Ero[id]);
   Len += formatex(Query[Len], charsmax(Query)-Len, "Ved = ^"%i^", ", Ved[id]);
   Len += formatex(Query[Len], charsmax(Query)-Len, "Int = ^"%i^", ", Int[id]);
   Len += formatex(Query[Len], charsmax(Query)-Len, "Mob = ^"%i^" WHERE Nev = ^"%s^";", Mob[id], Name);
         
   SQL_ThreadQuery(g_SqlTuple, "QuerySetData", Query);

   return PLUGIN_CONTINUE
}

Szerző:  exodus [ 2017.02.10. 14:51 ]
Hozzászólás témája:  Re: Sql mentés

Mondjuk egy egész forráskoddal többre mennénk. :D

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/