laucinieks Posted March 19, 2010 Author Report Share Posted March 19, 2010 (edited) Uzliku, tagad rādās, kad balsoju par bildēm, par kurām jau esmu nobalsojis - DB function failed with error number 1062 Duplicate entry '8-81.198.30.248' for key 1 SQL=INSERT INTO jos_datsogallery_votes VALUES ( 8, '81.198.30.248', now() ) Edited March 19, 2010 by laucinieks Quote Link to comment Share on other sites More sharing options...
Kaklz Posted March 19, 2010 Report Share Posted March 19, 2010 tavā screenshot ir arī redzama daļa "Indeksi" paņem nospied uz zīmuļa pie vpic unikālā indeksa un nākamajā skatā pieliec klāt tikko pievienoto kolonu. Tā kļūda, ko tu dabū, nozīmē, ka kāds par konkrēto bildi no konkrētās ip adreses jau ir nobalsojis. Palielinot unikālo indeksu uz 3 laukiem, vajadzētu atļaut balsot no vienas ip reizi dienā. Quote Link to comment Share on other sites More sharing options...
laucinieks Posted March 19, 2010 Author Report Share Posted March 19, 2010 Viss iet, liels paldies! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.