0

I'd think to make a new table (logs_table) and track the activity there. So the only query I'd have to run is something like:

SELECT * FROM logs_table

and I'll be ok. Is there a more efficient way of doing this?

Thanks in advance :)

nLamprok
  • 77
  • 1
  • 1
  • 6
  • 2
    Pro hint: Try not to name your tables `something_table`. It's like naming a variable `$name_variable` or your child `Alex-child`. We know it's a table. You can simply call it `logs` or even `log_entries`. – webbiedave Oct 03 '11 at 22:22
  • it was an example, but anyways thanks for your help :) – nLamprok Oct 03 '11 at 22:26

1 Answers1

0

Not really, best shot is to save data in DB, however I'd be careful with the structure and the age of records before you delete them, so you don't overload the DB and slow down the site.

Saulius Antanavicius
  • 1,371
  • 6
  • 25
  • 55