Jump to content

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)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.