![]() |
![]() |
-darkowski- |
![]()
Post
#1
|
Goście ![]() |
Witam
Mam skrypt komentarzy i chciałbym żeby była wyświetlana data wystawienia oraz żeby wyglądało to tak: np. 27 luty 2008 o 10:34 z sekundami lub bez i miesiąć może być napisany cyframi czyli np. 27.02.2008 Napisał: np. Darkowski No i tutaj treść komentarza oto skrypt: dodawacz.php CODE <form action="zapis.php" method="POST"> <table width="100%"> <tr> <td width="7%">Autor</td> <td width="93%"> <input type="text" name="autor" size="38" /></td> </tr> <tr> <td width="7%">Treść</td> <td width="93%"> <textarea name="tresc" style="width: 251; height: 150;" rows="1" cols="20" ></textarea></td> </tr> <tr> <td > </td><td> <input type="submit" value="Dodaj" /></td> </tr> </table> </form> <table class="all" border="0" width="100%"> <tr> <td><?php include "wiadomosc.php"; ?></td> </tr> </table> zapis.php CODE <?php $fp=fopen("dane.php","a+"); flock($fp,LOCK_EX); fwrite($fp,$_POST["autor"]."|".$_POST["tresc"]."\n"); flock($fp,LOCK_UN); fclose($fp); ?> co tu zmienić? z góry dzięki |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
To pokaż te Swoje próby.
-------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 19:08 |