kaksis20 Posted June 7, 2013 Report Share Posted June 7, 2013 kā tas būtu izdarāms? piemēram, man ir saglabāts db lietotājs: Vārds,Uzvārds,ID,Nauda,Punkti Kā es varētu pēc tā ID iegūt viņa datus(Naudu un punktus)? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 7, 2013 Report Share Posted June 7, 2013 `SELECT * FROM users WHERE id = 1;` Quote Link to comment Share on other sites More sharing options...
kaksis20 Posted June 7, 2013 Author Report Share Posted June 7, 2013 paldies, cik noprotu, tā ir sql darbība, bet kā lai to uzstaisa uz php? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 7, 2013 Report Share Posted June 7, 2013 PDO, MySQLi. Quote Link to comment Share on other sites More sharing options...
anonīms Posted June 7, 2013 Report Share Posted June 7, 2013 http://php.net/manual/en/mysqli.query.php Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 7, 2013 Report Share Posted June 7, 2013 (edited) Ak dies... Ar šādiem jautājumiem papriekš jāgriežās pie MySQL manuāļa, jāpalasās, kas tas vispār ir, kā ar to apieties, un tad jau palasīt PHP dokumentāciju MySQL plaginiem. // It really is summer in here... Edited June 7, 2013 by jurchiks Quote Link to comment Share on other sites More sharing options...
kaksis20 Posted June 9, 2013 Author Report Share Posted June 9, 2013 Vai tad šī sadaļa nav domāta Iesācējiem? :) Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 10, 2013 Report Share Posted June 10, 2013 Nu tāpēc jau arī sākumā MySQL... Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 10, 2013 Report Share Posted June 10, 2013 (edited) > Nu tāpēc jau arī sākumā MySQL... Wut. Edited June 10, 2013 by daGrevis Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 11, 2013 Report Share Posted June 11, 2013 cik noprotu, tā ir sql darbība Neizklausās, ka cilvēks māk SQL. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 11, 2013 Report Share Posted June 11, 2013 Kāpēc tieši sākumā MySQL? Quote Link to comment Share on other sites More sharing options...
jurchiks Posted June 11, 2013 Report Share Posted June 11, 2013 (edited) Zini, tāpēc, ka man tā gribējās. Bet ja cilvēks nemāk ne PHP, ne MySQL, tad, protams, pofig. Edited June 11, 2013 by jurchiks Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 12, 2013 Report Share Posted June 12, 2013 Kāpēc tieši sākumā PHP? Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted June 12, 2013 Report Share Posted June 12, 2013 Tāpēc ka pytons, acīmredzot kaut ko nodara cilvēku smadzenēm. Izcils piemērs tam ir daGrevis. Vai arī tev liekas, ka viņam vispirms ir jāapgūst kā strādāt pytonā un postgreSQL(vai pogfig kur citur), lai gan topikā nosaukumā rakstīts - "Mysql: iegūt kollonas value pēc id" un "paldies, cik noprotu, tā ir sql darbība, bet kā lai to uzstaisa uz php?". Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 12, 2013 Report Share Posted June 12, 2013 Tā aprobežotība, ka ir tikai viens risinājums attiecīgajai problēmai. Viena valoda, viens DBMS un viena platforma! Un nost ar Pitonu! Tici man, ir arī citas valodas bez Pitona un PHP. 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.