Frikadele Posted January 4, 2008 Report Share Posted January 4, 2008 Sveicinati... Vai kads nevaretu iemest php kodinju, kur 1) faila ir 2 textboxi, kuros ieraxta textun un pectam uzspezhot submit tos ieliek DB(ari to izveido)... 2) fails, kursh nolasa kas ir ievietos DB un pec nolasishanas izdzes db. Lugums palidzet.. Link to comment Share on other sites More sharing options...
Delfins Posted January 4, 2008 Report Share Posted January 4, 2008 bāc, nu paņem jebkuru hotscripts.com skriptu... tur praktiski 99.99% tas viss ir. Jāizgriež/jāpielabo kods un viss Link to comment Share on other sites More sharing options...
Frikadele Posted January 4, 2008 Author Report Share Posted January 4, 2008 Nu laikam kkadus 10 esmu meklejis, bet nekur nav atrasts - lai izdzesh db! Un ari neatradu failu kursh uztaisa db un kura pectam (no ta pasha faila) var ari raxtit ieksha Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 4, 2008 Report Share Posted January 4, 2008 (edited) 1) faila ir 2 textboxi, kuros ieraxta textun un pectam uzspezhot submit tos ieliek DB(ari to izveido)...2) fails, kursh nolasa kas ir ievietos DB un pec nolasishanas izdzes db. murgs, lai pieseivotu un izvaditu 2 textus VISPAR nav nepieciesama DB ... tam pietiek ar 2 failiem (ja japaglaba kadu laicinju...) --- Piedevam dodu 99% garantiju ka jauc DB ar DB tabulu... Edited January 4, 2008 by Grey_Wolf Link to comment Share on other sites More sharing options...
Frikadele Posted January 4, 2008 Author Report Share Posted January 4, 2008 Nu isteniba biju domajis sakuma ar Post funkciju un saglabat to txt faila. Bet vai ir iespejams ka ta tu teici tikai ar tiem 2viem failiem? Ja vari ludzu palidzi Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2008 Report Share Posted January 4, 2008 1) Forma ar method="post". 2) Php ar $_POST dabuujam formas veertiibas. 3) Ar fopen un fwrite ierakstaam failaa. Link to comment Share on other sites More sharing options...
Frikadele Posted January 4, 2008 Author Report Share Posted January 4, 2008 njaa bet ka lai taja faila parada, ka 1mais ieraxts ir 1ns mainigais (kas pectam ir redzams) un otrs ir otrs mainigais... kjip 1maja faila ieraxta textboxa Vards 2traja textboxa Uzvards tad fwrite atiecigie mainigie (1 un 2 textbos) un vajadzetu ta, ka faila.txt (piemeram) saglabajas ka $mainigais1 = Vards $mainigais2 = Uzvards Iespejams ka ir kads cits variants, bet es gribu uzzinat vismaz vienu ka panakt shadu rezultatu Link to comment Share on other sites More sharing options...
andrisp Posted January 4, 2008 Report Share Posted January 4, 2008 php.net/serialize un php.net/deserialize. Un nolasīt failu arī var ar fopen (kā arī file_get_contents() un vēl lērums citu funkciju.) Link to comment Share on other sites More sharing options...
Recommended Posts