Autor Zpráva
Tred
Profil
$sql = 'ALTER TABLE `uzivatele` CHANGE `Username` `Username` VARCHAR(12) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `Password` `Password` VARCHAR(12) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `PasswordVerify` `PasswordVerify` VARCHAR(12) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `EmailAddress` `EmailAddress` VARCHAR(32) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `name` `name` VARCHAR(15) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `surname` `surname` VARCHAR(20) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `birthdate` `birthdate` VARCHAR(10) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `platforma` `platforma` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `photo` `photo` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `address` `address` VARCHAR(64) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `icqnumber` `icqnumber` VARCHAR(11) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `skypenick` `skypenick` VARCHAR(32) CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `web` `web` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `nazor` `nazor` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `MessageType` `MessageType` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `MessageType2` `MessageType2` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `MessageType3` `MessageType3` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL, CHANGE `MessageType4` `MessageType4` TEXT CHARACTER SET latin2 COLLATE latin2_czech_cs NOT NULL';


JAK TO MÁM NAPSAT DO PHP KÓDU???
djlj
Profil
Myslím, že by teď jen stačilo mysql_query($sql);
Tred
Profil
Jé nazdar.
ale jak mohl bys to prosím napsat celý jak to má vypadat. Díkes
Jakub
Profil
$pripojeni=mysql_connect("server", "login", "heslo");
mysql_select_db("databaze");
$sql=..........
$dotaz=mysql_query($sql);
mysql_close($pripojeni);

Lidi nebuďte líní hledat, tohle je v desítkách tutoriálů na webu i v téhle diskuzi.
Toto téma je uzamčeno. Odpověď nelze zaslat.

0