Jump to content
php.lv forumi

Ievietosana tabulas otrajā kollonnaa


lazda144

Recommended Posts

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

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 by xPtv45z
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...