SkyD Posted July 15, 2005 Author Report Share Posted July 15, 2005 a regjistraacijai kaa var pieshkjir katram userim savu ID? $query = "INSERT INTO useri (logins,parole,id) VALUES ('$logins',MD5('$mdpass'), '.$_GET['id'].')"; un login sisteemaa, ja viss ok, lai address bar'aa parādītos /?id=usera id !! No datubāzes jaizvelk ārā tas id, tad janodefinē kā $id un ?id=$id ???~?~?? Kautkā tā?? Link to comment Share on other sites More sharing options...
v3rb0 Posted July 15, 2005 Report Share Posted July 15, 2005 ja vien nevajadzes tev veelaak apvienot divu darbojosu sistemu userus vienaa sisteemaa un nemainot useru id, tad drosi liec id laukam atuoincrementu. kaut kā šitā: ALTER TABLE useri DROP COLUMN id; ALTER TABLE useri ADD id INT UNSIGNED NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id); sīkak rtfm Link to comment Share on other sites More sharing options...
SkyD Posted July 17, 2005 Author Report Share Posted July 17, 2005 Nu veči, reku i abi kodi, kas pievieno admini datubāzei un kas nolasa.. Kodi šeit! Bet kautkas viņiem neiet.. ADD formaa ierakstu loginu un pass, viss notiek, uzrāda ka pievienots, bet LOGIN formā ierakstot datus pareizi iekšā izmet: "tu esi launais haxorz", karoch nepareizi... WHERE IS THE PROBLEM? Link to comment Share on other sites More sharing options...
Recommended Posts