neprasa Posted November 6, 2006 Report Share Posted November 6, 2006 ja serveris nevar pieslegties pie mysql datubazes tad nevar uztaisit lai mysql ir kads fails piemeram lai nav konekt uz tadu tdau datubazi bet lai nem datubazi no c:/baze.sql Link to comment Share on other sites More sharing options...
andrisp Posted November 6, 2006 Report Share Posted November 6, 2006 (edited) Mysql datubāze ir "sofwariska". Tāpēc nevar. PS. pieturzīmes! Edited November 6, 2006 by andrisp Link to comment Share on other sites More sharing options...
bubu Posted November 6, 2006 Report Share Posted November 6, 2006 Nu kāpēc gan lai nevarētu? if (@mysql_connect(..)) { $q = mysql_query(..); $dati = mysql_fetch_row($q); } else { $dati = file("C:/baze.sql"); } Link to comment Share on other sites More sharing options...
andrisp Posted November 6, 2006 Report Share Posted November 6, 2006 Esmu pretty sure, ka tas nebija tākā viņš domāja. Link to comment Share on other sites More sharing options...
neprasa Posted November 6, 2006 Author Report Share Posted November 6, 2006 Nu kāpēc gan lai nevarētu? if (@mysql_connect(..)) { $q = mysql_query(..); $dati = mysql_fetch_row($q); } else { $dati = file("C:/baze.sql"); } ja es domajuu laikam taa jo man nevar nekad piesleegties pie mysql Link to comment Share on other sites More sharing options...
andrisp Posted November 6, 2006 Report Share Posted November 6, 2006 Nu un ko tu darīsi ar to sql dampu ? Link to comment Share on other sites More sharing options...
blackhalt Posted November 6, 2006 Report Share Posted November 6, 2006 Nu tur jau dati tīri smuki sakārtoti. Var izlasīt ārā ka no TXT faila ;) Link to comment Share on other sites More sharing options...
Delfins Posted November 6, 2006 Report Share Posted November 6, 2006 izvirtuļi... Link to comment Share on other sites More sharing options...
bubu Posted November 6, 2006 Report Share Posted November 6, 2006 Nu un ko tu darīsi ar to sql dampu ? Kā tu zini, kas tur iekšā? moška šim smuki CVS formātā dati izeksportēti .. Link to comment Share on other sites More sharing options...
andrisp Posted November 6, 2006 Report Share Posted November 6, 2006 Varu saderēt, ka nav. Link to comment Share on other sites More sharing options...
neprasa Posted November 6, 2006 Author Report Share Posted November 6, 2006 es to prasu tikai tapec ka man nekad neiet mysql, un ka var sakartot skaisti txt failaa? vai dodot katrai rindai savu numuru? piemeram sadala x ir 1 tresaa apaksnodala sadala x ir 1.3 ? bet ka varetu uztaisiit lai vins nem tikai noteikto rindu ? un ka varetu rindai iedot id Link to comment Share on other sites More sharing options...
andrisp Posted November 6, 2006 Report Share Posted November 6, 2006 Vislabāk tad būtu izmantot XML: - http://www.w3schools.com/xml/default.asp; - http://lv.php.net/xml - http://lv.php.net/manual/en/ref.dom.php - http://www.phpbuilder.com/columns/matt20001228.php3 Link to comment Share on other sites More sharing options...
Delfins Posted November 6, 2006 Report Share Posted November 6, 2006 buagagh... ko nozīmē, ka tev nekad neiet mysql... tātad tev vispār nav mysql un te nav jābūt runai par SQL kā tādu... ja nu vienīgi dabūsi PHP-API priekš dumpa vai CSV, tā lai varētu arī Zortēt un meklēt :) Link to comment Share on other sites More sharing options...
Orion7 Posted November 7, 2006 Report Share Posted November 7, 2006 Nu ja datubāze sastāv tikai no plikām vienkāršām tabulām, tad jau var arī pats uzmeistarot kaut kādu miniDB implementāciju, kas tabulas glabās failos un tad nu vajadzības gadījumā datus ņems no failiem. Tikai protams regulāri būs jābekapo dati no īstās DB uz tiem failiem, lai tie būtu uptodate. Link to comment Share on other sites More sharing options...
Recommended Posts