Jump to content
php.lv forumi

Recommended Posts

Posted

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!!

Posted (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 by lazda144
Posted (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 by xPtv45z
  • 2 weeks later...
×
×
  • Create New...