andrisp Posted May 9, 2008 Report Share Posted May 9, 2008 Nē nu es to zinu, bet es nesaprotu, kur ir problēma ? Cik noprotu, topika autors to arī ļoti labi saprot un tieši tā arī gribēja: ja id datubāzē piem. ir 5, [tad sanāk] 94. 5+10*7+19 = 94 ? Vai arī tu tagad centies apgalvot, ka matemātiskā ekspresija 5+10*7+19 ir "nevalīda" ? :) Link to comment Share on other sites More sharing options...
andrisp Posted May 9, 2008 Report Share Posted May 9, 2008 Kā arī - nekur taču netika apgalvots, ka id + 10 daļai būtu jāizpildās pašai pirmajai. Link to comment Share on other sites More sharing options...
bubu Posted May 9, 2008 Report Share Posted May 9, 2008 bubu, un kā tu zinātu, kuram recorda ID atbilst kārtējais klienta pieprasītais? ;) Kautkā šādi: SELECT * FROM db WHERE md5(concat(cast(id, char), $salt)) == $id Ātrdarbības labad to kalkulāciju var glabāt papildus kolonnā. Tāpat tā nekad nemainīsies (ja id ir primary key). Link to comment Share on other sites More sharing options...
v3rb0 Posted May 9, 2008 Report Share Posted May 9, 2008 (edited) a kāpēc vispār usera id kaut kur jārāda? sūti uz serveri komandu - "aizsūti sludinājuma (ar id tādu un tādu) autoram ziņu šitādu te"? jeb izstāstīji nepareizi "tolku" kam tev to vajag Edited May 9, 2008 by v3rb0 Link to comment Share on other sites More sharing options...
Foxy Posted May 9, 2008 Report Share Posted May 9, 2008 Nu jau jūs te čaļi dodat pa augstāko matemātiku! Vajag tikt galā ar sito - NULL + 1 + 3 = ? :) NULL butu jauztver ka NULL :) Link to comment Share on other sites More sharing options...
mixis Posted May 9, 2008 Report Share Posted May 9, 2008 Foxy, pats tu ir NULL :D Link to comment Share on other sites More sharing options...
Foxy Posted May 9, 2008 Report Share Posted May 9, 2008 Reiz kads gurds cilveks par NULL teicis (soreiz ne es) It is neither nothing nor something; It is neither a good thing nor a bad thing; It is neither a big thing nor a small thing; But it is something we have to deal with among all things. It is neither a lender nor a borrower; It is neither a zero nor a blank; It is neither here nor there; But, in programming, it is everywhere. Link to comment Share on other sites More sharing options...
bubu Posted May 9, 2008 Report Share Posted May 9, 2008 Foxy: kāds NULL te ar kautko ir sakars? Jeb tev vienkārši patīk spamot topikos beztēmā? Link to comment Share on other sites More sharing options...
Recommended Posts