SkyD Posted January 20, 2006 Report Share Posted January 20, 2006 Vajag, kad nospiezh ENTER ieksh TEXTAREA, peectam tas teksts taa arii saglabaajas ieksh MySQL. Savaadaak ir taa, ka rakstot vairaakaas rindaas, beigaas izvadot, viss iet vienaa rindaa.. Varbuut pie nolasiishanas ir probleema? Link to comment Share on other sites More sharing options...
hmnc Posted January 20, 2006 Report Share Posted January 20, 2006 nl2br() Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 20, 2006 Report Share Posted January 20, 2006 (edited) ja iipashi to tekstu neapstraadaa - nenogriez /n /r tad vinsh taa rii saglabaajas pie izvadiishanas ir 2 varijanti :) HTMLa <PRE> vai PHP nl2br() ------ pirmais izvada neformateetu (tas taa nosaciiti) tekstu otrais aizvieto /n ar <br> ------------- edit: hmnc jau pasteidzaas ... Edited January 20, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
SkyD Posted January 20, 2006 Author Report Share Posted January 20, 2006 Ok. Visu sapratu. Labaak man patika tas nl2br(); Link to comment Share on other sites More sharing options...
SkyD Posted January 20, 2006 Author Report Share Posted January 20, 2006 Daliit pa lapaam?? Kaa??!!!! lv.php.net nevareeju atrast kaadu piemeeru... Link to comment Share on other sites More sharing options...
bubu Posted January 20, 2006 Report Share Posted January 20, 2006 Slikti meklēji... http://php.lv/f/index.php?showtopic=2935 "ierakstu dalīšana par lappusēm" Link to comment Share on other sites More sharing options...
SkyD Posted January 21, 2006 Author Report Share Posted January 21, 2006 Nu šitas taka derētu: http://php.lv/f/index.php?s=&showtopic=206...indpost&p=14190 Uzlieku mainiigo $limits = 1; Krch ir man 2ieraksti ieksh tajaa tablee.. Uzliku LIMIT 1, paraada to vienu ierakstu, a kad nospiezh uz linka talak -> neparaada to otru ierakstu.. Link to comment Share on other sites More sharing options...
bubu Posted January 21, 2006 Report Share Posted January 21, 2006 Nu tad meklē kodā kļūdas. Debugo, treiso, utt. Neviens te nav gaišreģis. Link to comment Share on other sites More sharing options...
DarkSide Posted January 24, 2006 Report Share Posted January 24, 2006 taa gan :) Link to comment Share on other sites More sharing options...
SkyD Posted January 31, 2006 Author Report Share Posted January 31, 2006 Problēma tāda, lai arī nav neviens skatītājs jau bijis tajā dienā, pasaka, ka "jau ir..", un nelaiž tālāk.. Šķiet, ka kods līks, ne?:DD~ Reku problēma: http://paste.php.lv/3232 .. Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 31, 2006 Report Share Posted January 31, 2006 (edited) if ($meklee) { te kļūda vajaga pārbaudīt if ( mysql_num_rows() ) { http://lv.php.net/manual/en/function.mysql-num-rows.php Edited January 31, 2006 by Paulinjsh Link to comment Share on other sites More sharing options...
SkyD Posted January 31, 2006 Author Report Share Posted January 31, 2006 ja mysql_num_rows mazaaks pa 1, tad pasak, ka ir jau, ja?! Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 31, 2006 Report Share Posted January 31, 2006 (edited) Nē, ja nav, tad mysql_num_rows() atgriež false. Lasam tak dokumentāciju.. Pat linku iedevu grūti nospiest un izlasīt! Edited January 31, 2006 by Paulinjsh Link to comment Share on other sites More sharing options...
SkyD Posted January 31, 2006 Author Report Share Posted January 31, 2006 (edited) Lasu to dokumentāciju. Nu tad sanāk, if (mysql_num_rows($meklee) == true) { saka, ka ir jau... } :)~~ edit: nee, tomeer taa nav..:P~ Edited January 31, 2006 by SkyD Link to comment Share on other sites More sharing options...
Kristabs Posted January 31, 2006 Report Share Posted January 31, 2006 Man liekas, ka TRUE buus arii gadiijumaa, ja buus 0 rindas. Taakaa paarbaudi vai lielaaks par 0 if (mysql_num_rows($meklee) > 0) { //ir taads ieraksts } Link to comment Share on other sites More sharing options...
Recommended Posts