FT3 Posted July 30, 2011 Report Share Posted July 30, 2011 (edited) tatad ir viens jautajums ka ustajsit favoritus piem fails1 id-1 fails2 id-2 un kad pievieno failu favoritam lai visi id ierakstas viena kolonaa iekš mysql un ka pectam tos id izvest pa vienam Edited July 30, 2011 by FT3 Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 30, 2011 Report Share Posted July 30, 2011 Ir tabula 'faves' kurā glabājas 'user_id' (cilvēks, kurš 'fave`oja') un 'file_id' (fails, kas tika 'fave`ots'). Quote Link to comment Share on other sites More sharing options...
FT3 Posted July 30, 2011 Author Report Share Posted July 30, 2011 nesapratu ;/ Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 30, 2011 Report Share Posted July 30, 2011 Uztaisi jaunu tabulu kurā glabāsies 'saistības' starp failiem/cilvēkiem. Katrs jaunais 'favourite' būs jauns ieraksts tajā tabulā un saturēs 'user_id' no 'users' tabulas un 'file_id' no 'files' tabulas. Quote Link to comment Share on other sites More sharing options...
FT3 Posted July 30, 2011 Author Report Share Posted July 30, 2011 http://www.bildites.lv/viewer.php?file=o5ci2m22v6r45pkq345i.bmp un tur kur favorities izvest ciparus pa vienam ? ta var ? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 30, 2011 Report Share Posted July 30, 2011 Tu dari tāpat kā Es darīju pirms laba laiciņa. Esi brīvs un nebaidies izmantot daudzas tabulas! Tev nav 'jāsabāž' viss, kas ir saistīts ar failiem, vienā tabulā. Papēti Manu doto piemēru uzmanīgāk un centies saprast ieguvumus tam. Quote Link to comment Share on other sites More sharing options...
FT3 Posted July 30, 2011 Author Report Share Posted July 30, 2011 nu ta ta ka tu teici maku . gribetos ta ka attela Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 30, 2011 Report Share Posted July 30, 2011 Es Tev nepalīdzēšu tā uztaisīt! Tas tikai vairos ļaunumu. :D Quote Link to comment Share on other sites More sharing options...
rebuilder Posted July 30, 2011 Report Share Posted July 30, 2011 FT3 Tava doma nav gluži pareiza! Dari kā daGrevis teica! Quote Link to comment Share on other sites More sharing options...
FT3 Posted July 30, 2011 Author Report Share Posted July 30, 2011 nevairos :DDD palidzi please Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 30, 2011 Report Share Posted July 30, 2011 Samaksā tad. Mana stundas likme ir 3 Ls. :)) Pārvietot uz darba sludinājumiem? :) Mans divi-tūkstošais posts... dzeram. Quote Link to comment Share on other sites More sharing options...
anonīms Posted August 1, 2011 Report Share Posted August 1, 2011 A kāpēc gan nepamēģināt kko citu ^_^? katram lietotājam pietiek ar vienu ierakstu. Ja ir pirmais ieraksts, izveidojam, sametam array un serialize. Nevajadzēs ntos ierakstus vienam cilvēkam, bet smuki atrarojam, pievienojam, noņemam no arrayja un aidā. ? :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 1, 2011 Report Share Posted August 1, 2011 A kāpēc gan nepamēģināt kko citu ^_^? Šito ne-e. Quote Link to comment Share on other sites More sharing options...
anonīms Posted August 1, 2011 Report Share Posted August 1, 2011 arguments? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 1, 2011 Report Share Posted August 1, 2011 Lēni, neparocīgi. 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.