XXLBOY Posted November 4, 2006 Author Report Share Posted November 4, 2006 (edited) Moshka butu noradijis link uz manuali ? Tev pat to gruti izdarit ;( Nja tiesam gruti jums palidzet man ! :( :( :( Starp citu Delfin es te pastijos tavus postus ( 10 ) no tiem 10 tu 1 posta biji sniedzis real atbildi !!! Parejos visos juzdamies kruts tu noradiji --> mekle google un manulai ! Nu kruts tu esi ! apsveicu !! Es jau ar varu katra posta noradit mekle manuali! Un paradit kads es kruts esmu! Bet nu ok katrs dara to ko mak visslabak ! Jee es atradu scriptu ( te bus lai ari citiem tiek): index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Language" content="lv" /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1257" /> <title>Viesugrвmata</title> </head> <body> <?php include("dati.php"); ?> <br /> <form action="pieliktinfo.php" method="post"> Niks:<br /> <input type="text" name="niks"><br /> Teksts:<br /> <textarea cols="40" rows="5" name="teksts"></textarea><br /> <input type="submit" value="Pievienot"> </form> </body> </html> dati.php <b>Datums:</b> 11 Jun 2006 11:25 am<br /> <b>Pievienoja:</b> XXLBOY<br /> <b>Teksts</b> Vai nav forрi?<br /><br /> pielikinfo.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1257" /> <meta http-equiv="refresh" content="2; URL=<?php echo $_SERVER['HTTP_REFERER']; ?>" /> <title>Viesugrвmata</title> </head> <body> <?php //taisоja XXLBOY=] error_reporting (E_ALL ^ E_NOTICE); $datums = date("d M Y h:i a"); $niks = htmlspecialchars($_POST["niks"]); $teksts = htmlspecialchars($_POST["teksts"]); print("<b>Paldies!</b><br />Tavs ieraksts tika pievienots!"); $fails = fopen("dati.php", "a"); if (!$fails) { print("Kпыda. Kaut kas nogвja greizi"); exit; } fputs ($fails,implode,("\n")); fwrite($fails,"<b>Datums:</b> $datums<br /> <b>Pievienoja:</b> $niks<br /> <b>Teksts</b> $teksts<br /><br /> "); fclose($fails); ?> </body></html> Mna 1. jautajums ka lai index.php uztaisa fonu peleku un pievienot augsa bildi ( visu pa vidu dabut ) Edited November 4, 2006 by XXLBOY Link to comment Share on other sites More sharing options...
andrisp Posted November 4, 2006 Report Share Posted November 4, 2006 Un tas, ka katraa manaa postaa ir pa vismaz vienai noraadei uz php.net, neskaitaas? Link to comment Share on other sites More sharing options...
XXLBOY Posted November 4, 2006 Author Report Share Posted November 4, 2006 Ta fonu krasu es dabuju :D Eu ka var centret ? nu ta lai viss butu pa vidu ? un ka ievietot bilditi :) :D Link to comment Share on other sites More sharing options...
bubu Posted November 4, 2006 Report Share Posted November 4, 2006 Moshka butu noradijis link uz manuali ? Tev pat to gruti izdarit ;( Un tev pašam grūti manuāli vai gūgli atvērt? Es jau ar varu katra posta noradit mekle manuali! Un paradit kads es kruts esmu! Bet vai tu pats māki tajā manuālī atrast to ko tev vajag? Par Delfinu es nešabos, viņš māk. Link to comment Share on other sites More sharing options...
XXLBOY Posted November 4, 2006 Author Report Share Posted November 4, 2006 (edited) nu lab soory negribeju nevienu apvainot ! Es saprotu ka jus zinat! Es tikaj gribeju prasit vai jus nevarat padalities pieredze un scriptos...... Runajot par to : Man ir script augstak minetais ! bet kad posto vairak vinjs visu postoto laiz viena rinda un tad lapa iznak horizontali baigi garaaa! Ka no ta var izbegt? Nu nez ko es tur uzrakstiju kr4 Ta lai butu piem pec cik tur zimem horizontali auto enter ( <br /> ) pasakiet ludzu ka to panakt ! Edited November 4, 2006 by XXLBOY Link to comment Share on other sites More sharing options...
Delfins Posted November 4, 2006 Report Share Posted November 4, 2006 Nu atkal viss no manuāļa.. meklē pēc `wrap` keyworda Link to comment Share on other sites More sharing options...
XXLBOY Posted November 4, 2006 Author Report Share Posted November 4, 2006 (edited) :) nuuu :D Vai nu teisam gruti pateikt uzreiz scriptu ! Tur tak nevar but nekas gruts preiks tada limenja cilvecinjeim ka jus ? :D RESPECT :D :) man kaut ka nestrada es izmantoju so te : $newtext = wordwrap($text, 20, "<br />\n"); echo $newtext kur to vajadzetu iemest ! Es metu pie pieliktinfo.php aiz rindinam $niks = htmlspecialchars($_POST["niks"]); $teksts = htmlspecialchars($_POST["teksts"]) Edited November 4, 2006 by XXLBOY Link to comment Share on other sites More sharing options...
Delfins Posted November 5, 2006 Report Share Posted November 5, 2006 Vai nu teisam gruti pateikt uzreiz scriptu ! Tur tak nevar but nekas gruts preiks tada limenja cilvecinjeim ka jus ? :D Tu zini, - grūti, it īpaši ja par to nemaksā.. Un kā redzi, pats atrod atbildes. Tā turpināt. Link to comment Share on other sites More sharing options...
XXLBOY Posted November 5, 2006 Author Report Share Posted November 5, 2006 Eu nu man neiznak kaut ka ar to wordwrap kaut kas neiet ! Vienalga rezultata nekas neiznak :( kur ir jaliek: $newtext = wordwrap($text, 20, "<br />\n"); echo $newtext Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 5, 2006 Report Share Posted November 5, 2006 Pie izvades... jo nekad nezini vai tiesaam tev vienmeer buus tikai 20 simboli plats, ja peeksnji sagribeesi 120 simbolus platu, ko tad vecie texvar iet pastaigaaties+ nav jasaglabaa html tagi... Un saglabaa TIKAI datus !!! nevis gatavu tekstu uzreiz...... P.S. Tieshaam labaak pamaacies MySQL tas tev Ljoti atvieglos dziivi..... Arii normaai hosteetaaji tagat piedavaa MySQL .... + tas skripts neiznaaks nebuut garaaks, un sarezgjiitaaks... pat otraadi vienkarshaaks un krietni elastiigaaks.... (jo ja datus atdali ar | tad nekad nevari zinaat vai Letotaajs neievadiis kaudziiti ar | ... Link to comment Share on other sites More sharing options...
XXLBOY Posted November 5, 2006 Author Report Share Posted November 5, 2006 Eu pasakiet tiesak uzrakstiet vietu kur tas ir jaraksta ! Nee pa 20 vairak nevajadzes ! Link to comment Share on other sites More sharing options...
XXLBOY Posted November 5, 2006 Author Report Share Posted November 5, 2006 P.S. Tieshaam labaak pamaacies MySQL tas tev Ljoti atvieglos dziivi.....Arii normaai hosteetaaji tagat piedavaa MySQL .... + tas skripts neiznaaks nebuut garaaks, un sarezgjiitaaks... pat otraadi vienkarshaaks un krietni elastiigaaks.... (jo ja datus atdali ar | tad nekad nevari zinaat vai Letotaajs neievadiis kaudziiti ar | ... Es jau labprat bet ta ka nav kas man apskaidro ka to MySQL uzstadit tad jaiztiek bez ! Esmu meginajis man nesanak :( Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 5, 2006 Report Share Posted November 5, 2006 Es jau labprat bet ta ka nav kas man apskaidro ka to MySQL uzstadit tad jaiztiek bez ! Esmu meginajis man nesanak :( Ja tev ir WIN tad nokachaa insatlu palaid un aizpildi ~~5 !!! laukus Viss !!!! PAT $M OFICE pie izveles uzzstaadiishanas ir sarezgjiitaaka.... Link to comment Share on other sites More sharing options...
XXLBOY Posted November 5, 2006 Author Report Share Posted November 5, 2006 Nu vot ! A ka tad lai es pectam uzstadu ?? Wolf pasaki kur tas wordwrap jaliek ir taja maneja scripta kas ir augstak! ludzu!! Link to comment Share on other sites More sharing options...
andrisp Posted November 5, 2006 Report Share Posted November 5, 2006 XXLBOY, ko tu tieši nesaproti MySQL instalācijā ? Link to comment Share on other sites More sharing options...
Recommended Posts