lazda144 Posted December 18, 2007 Report Share Posted December 18, 2007 Kaapeec kad meeginu uztaisiit lai noteiktaa rindinaa ieliek vienu skaitli man paraada 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 amx_admins_servers VALUES (2, '1')' at line 3 gabals no mana php faila $register = "INSERT INTO amx_amxadmins ( username, password, access, flags, nickname) VALUES('$nick', '$pass', '$access', '$flags', '$nickname') INSERT INTO amx_admins_servers VALUES (2, '1')"; mysql_query($register) or die(mysql_error()); mysql_close(); vai es daru pareizi!! man skaitli 1 vajag ielikt tabulaa amx_admins_servers otrajaa kolonna!! Link to comment Share on other sites More sharing options...
Val Posted December 18, 2007 Report Share Posted December 18, 2007 $register saturs galīgi līks Link to comment Share on other sites More sharing options...
lazda144 Posted December 18, 2007 Author Report Share Posted December 18, 2007 (edited) es tikai ieliku INSERT INTO amx_admins_servers VALUES (2, '1')" paareejais vis ir nemts paste.lv val tu loti man paliidzeeji thanks :) Edited December 18, 2007 by lazda144 Link to comment Share on other sites More sharing options...
xPtv45z Posted December 19, 2007 Report Share Posted December 19, 2007 (edited) Norādi iekavās laukus, kuriem tu piešķir šīs vērtības. INSERT INTO amx_admins_servers (blabla, blablab) VALUES (2, '1') Bet laikam vaina nav tajā. Tev tur divi vaicājumi iet pēc kārtas neatdalīti. Edited December 19, 2007 by xPtv45z Link to comment Share on other sites More sharing options...
lazda144 Posted December 19, 2007 Author Report Share Posted December 19, 2007 plz paliidzat vinus atdaliit!! Link to comment Share on other sites More sharing options...
andrisp Posted December 19, 2007 Report Share Posted December 19, 2007 Izsauc divas reizes mysql_query() Link to comment Share on other sites More sharing options...
lazda144 Posted December 19, 2007 Author Report Share Posted December 19, 2007 it kaa sanaaca bet tas man neder!! plz kaads var paliidzeet uztaisiit taa lai kad amxbanos registree niku vins automaatiski pievieno pie servera admins!! Link to comment Share on other sites More sharing options...
andrisp Posted December 19, 2007 Report Share Posted December 19, 2007 "sanaaca bet tas man neder!!" nu i' ar' :) Link to comment Share on other sites More sharing options...
lazda144 Posted December 19, 2007 Author Report Share Posted December 19, 2007 itkaa vins pievieno bet ne pie ta admina kuru vajag lai straadatu man tad vajag no citas tabulas admina id izvilkt Link to comment Share on other sites More sharing options...
mounkuls Posted December 27, 2007 Report Share Posted December 27, 2007 Nebija vieglaak adminu statusu glabaat tanii pashaa tabulaa izveidojot veel vienu lauku taadam meerkim? Link to comment Share on other sites More sharing options...
Recommended Posts