ellespuika Posted December 15, 2010 Report Share Posted December 15, 2010 Esmu izveidojis webu! , ir tāda problēma kad piemeram gribu ielikt sava lapele kadu atseviscu lapusi , nu piemeram : Lietotaji ! Bet tiem lietotājiem ir savs SAVA DB , man lidz ar to kad es includoju , parejjeejam vismaz paraadas no seleced DB ! Quote Link to comment Share on other sites More sharing options...
mounkuls Posted December 15, 2010 Report Share Posted December 15, 2010 WEBu izveidoji?:) Bet no Tava jautājuma tiešām neko saprast neizdevās. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 15, 2010 Report Share Posted December 15, 2010 viens PHP skripts var izmantot arii varakas DB katrai DB veido svu pieslegumu un pectam izmanto piesleguma ID lai noradiitu kurai DB velies pieslegties ... Bet nu varbut tomer labak taas tabulas salikt vienaa DB ? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 15, 2010 Report Share Posted December 15, 2010 Pieņemsim, ka viss Tev balstās uz IPB. Pieņemsim, ka viņi izmanto Oracle. (interesants pieņēmums) Pieņemsim, ka Tev viss pārējais ir paškodēts un Tu izmanto MySQL. Tātad Tev ir divas tabulas. Oracle datubāzes tabulā Tev ir user's. Bet lai attēlotu lapu obligāti vajag arī MySQL datubāzi noteiktas tabulas. Ir iespējams veidot divus pieprasījumus, attiecīgi - viens vienai datubāzei, otrs otrai. Problēma? Bet šitā vispār nav smuki. =) Quote Link to comment Share on other sites More sharing options...
ellespuika Posted December 15, 2010 Author Report Share Posted December 15, 2010 Ir ta ka , man ir INDEX php kur ir pieprasijumi no dazhaadam table , no vienas db , es includoju lapeli vell pa vidam kkur , un tam includotajam failam ir cita db ar citiem table, ! uzreiz kad includoju , ma index faila neatver neko citu ka tikaj to includotu failu , bet pareejiem radas kkas.kkas. db not found ! Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 15, 2010 Report Share Posted December 15, 2010 (edited) Pieņemsim, ka viņi izmanto Oracle. (interesants pieņēmums) Ar sho arii varetu beigt ;) Jo cilveks kas zin Oracle , zinas arii parejo... --- Jau mineju katraj Db sava konekcija -> risinajums elementars... (bet ne labs) Edited December 15, 2010 by Grey_Wolf Quote Link to comment Share on other sites More sharing options...
ellespuika Posted December 15, 2010 Author Report Share Posted December 15, 2010 Ar sho arii varetu beigt ;) Jo cilveks kas zin Oracle , zinas arii parejo... --- Jau mineju katraj Db sava konekcija -> risinajums elementars... (bet ne labs) ir jau katrai sava konekcija , bet vinsh tikaj vienaji konekteejas kka! Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 16, 2010 Report Share Posted December 16, 2010 Emm, jalieto persistent connection, jo parastaa mysql konekcija var but tikai viena. Tikko tu atver otru, aizveras pirmā. http://www.php.net/manual/en/function.mysql-pconnect.php Quote Link to comment Share on other sites More sharing options...
codez Posted December 16, 2010 Report Share Posted December 16, 2010 Vai arī jāizmanto Mysqli $db1=new Mysqli('localhost','username1','passwords1','db1') $db2=new Mysqli('localhost','username2','passwords2','db2') Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 16, 2010 Report Share Posted December 16, 2010 Grey_Wolf, tas bija pirmais kas ienāca prātā pēc MySQL. =) Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 17, 2010 Report Share Posted December 17, 2010 ir jau katrai sava konekcija , bet vinsh tikaj vienaji konekteejas kka! pie pieprasijuma janoraada kuru konekciju izmantot ... Ja to nedariisi, tad tiks izmantota pedeja kuru izveidoji ... 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.