I would like to create a journal where a user adds an entry that has a javascript date stamp, followed by the entry into a MySQL table:
Date1:
Journal information1...
As the user adds another entry (the same format as above), the information follows on from the last entry in the table (not creating a new row in the table)
I want the previous entry to be hidden, so it doesn't look like a continuous list to the user:
/HIDDEN/
Date1:
Информация журнала1 ...
/hidden /< /strong> < /p>
date2:
information2 ...
< /p>
Я хочу сделать что -то, что -то: < /p>
< /p>
Я хочу сделать что -то, что: < /p>
< /p>
Я хочу сделать что -то, что -то
Код: Выделить всё
(previous entry)
(space for new entry)
var date = new Date();
var year = date.getFullYear();
document.getElementById('date').innerHTML = date;
Подробнее здесь: https://stackoverflow.com/questions/797 ... -php-mysql
Мобильная версия