Bry den,
mam taky problem, pri registracii ukladam rozne data do tabuliek, ale v jednej tabulke mi to zblbne...
zacinam:
$hotovost = 15000000;
$cash=mysql_query("INSERT INTO cash (cash) VALUES ('$hotovost')") or die (mysql_error());
prveho uzivatela registruje v poriadku, ale ked sa chce registrovat niekto iny, alebo ja ako iny uzivatel napise mi toto :
Duplicate entry '15000000' for key 2
tvorba tabulky cash :
$cash=mysql_query("CREATE TABLE `cash` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`cash` VARCHAR( 50 ) NOT NULL ,
UNIQUE (`cash`)
) ENGINE = innodb CHARACTER SET utf8 COLLATE utf8_czech_ci;") or die (mysql_error());
neviem kde ej chyba pls poradte