Jump to content

multiple updates to row entry


adzie

Recommended Posts

Hello folks,

 

Is it possible to create an entry in my DB and set a script to run every 2 hours update an entry.

 

ie if in a row I had a field called activity, could I put an entry in and then every 2 hours add to that entry with some seperator to be able to differentiate between the different entries?

 

thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/142392-multiple-updates-to-row-entry/
Share on other sites

Storing multiple values in in one field is not the best design (actually, it's pretty bad). You should create a separate table for those activities and every two hours insert a row into it.

 

As to scheduling repetitive task like this, the best way is to use a cron job (if it is supported on your host)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.