Puika1 Posted February 21, 2009 Report Posted February 21, 2009 man ir šāda problēma te viss rādās šķībi http://morgss.com/demo.php (tā nau reklāma) un es izmantoju šo kodu <?php if ($handle = link('http://morgss.com/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { $gabali = explode("-", $file); $date = $gabali[1]; $mape = $gabali[2]; $mapesgabali = explode(".", $mape); $name = $mapesgabali[0]; $year = substr($date,0,2); $month = substr($date,2,2); $day = substr($date,4,2); $hour = substr($date,6,2); $minute = substr($date,8,2); echo "<center> $day.$month.$year $hour:$minute $name <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> Es ļoti būtu pateicīgs ja kāds palīdzētu dabūt tā lai viss būtu vienā rindā un lai b utu pa lapam piem viena lapa kadi 20 demo un tad nakosa utt help ludzu Quote
bubu Posted February 21, 2009 Report Posted February 21, 2009 Tev par agru gribēt dalīt ierakstus pa lapām. Ieteiktu sākt ar kādu HTML pamatu pamācību. Apskaties, ko nozīmē <br> tags. Tu pie tam to nekorekti pieraksti. Ir nevis </br> bet gan <br/>. Un tiec vaļā no tām entītēm. Tabulas veidā izkārtojamiem datiem lieto <table> tagu. Quote
Puika1 Posted February 21, 2009 Author Report Posted February 21, 2009 pareizi es sapratu man jaliek ta <?php if ($handle = link('http://morgss.com/demo/')) { while (false !== ($file = readdir($handle))) { if (strlen($file) > 4) { <table>$gabali = explode("-", $file);</table> <table>$date = $gabali[1];</table> <table>$mape = $gabali[2];</table> <table>$mapesgabali = explode(".", $mape);</table> <table>$name = $mapesgabali[0];</table> <table>$year = substr($date,0,2);</table> <table>$month = substr($date,2,2);</table> <table>$day = substr($date,4,2);</table> <table>$hour = substr($date,6,2);</table> <table>$minute = substr($date,8,2);</table> echo "<center> $day.$month.$year;</table> <a href=\"demo/$file\">Novilkt</a></br></center>"; } } closedir($handle); } ?> Quote
bubu Posted February 21, 2009 Report Posted February 21, 2009 Nē, tu nepareizi saprati. Apskati tač kaut pirmos linkus no gūgles par tabulām, ja jau negribi lasīt nekādu pilnīgāku pamācību: http://www.w3.org/TR/html4/struct/tables.html http://www.w3.org/TR/html401/struct/tables.html Quote
Puika1 Posted February 21, 2009 Author Report Posted February 21, 2009 (edited) es sapratu bet man nesanak :(:( JA ES TEU PALUGTU LUDZU TU VARETU SALIKT ? Edited February 21, 2009 by Puika1 Quote
Odyssey Posted March 26, 2009 Report Posted March 26, 2009 (edited) ko tu te posto vienu pec otra salasiju jau tavus topikus kadus 10 kur visu prasi. kas mes tev visu deguna bazisim ar karoti ? es jau mazs pauika te visu kodeju man viss sanak :D Edited March 26, 2009 by Odyssey Quote
rollmax Posted April 5, 2009 Report Posted April 5, 2009 Puika1, tu ļoti maz ko zini par HTML, PHP. Tavā gadījumā es tev iesaku ieiet http://www.gign.lv/forum/index.php?showtopic=33115 sekot tai pamācībai... Quote
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.