[Tutorial] Storing player chat log in MySQL, automatic deletion and periodic backups
#5

Quote:
Originally Posted by Johnson_boy
Посмотреть сообщение
Код:
format(pQuery, sizeof(pQuery), "INSERT INTO "#TABLE_NAME"(Username, Time, Text) VALUES('%s', NOW(), '%s')", pName, text);
Of course, I forgot that! I'll add a note.

Quote:
Originally Posted by Johnson_boy
Посмотреть сообщение
Another thing: You should probably use datetime field instead of date, as it would most likely be useful to store the time of the message as well, not just the date.
I didn't feel any need to do so (IMHO), but if anyone'd like to that particular.. why not, I'll again add a side note.

Cheers
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)