Jump to content

Self_Taught_Still_Learning

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Self_Taught_Still_Learning

  1. I've got 2 rows in a database table for 2 different accounts, each time an account changes page, the time changes in the database and is recorded. I want to display both accounts side by side and have it pull that time running through a function to convert it into time gone by but have it refresh every 2-5 seconds without needing to keep refreshing the page manually. So on first load, user 1 and user 2 will be on 00s for example if both have just moved, then on next refresh user 2 hasn't moved but user 1 has so it would display user 1 as 00s and user 2 as 02s
  2. So it's to compare 2 figures simultaneously. Value 1 = Time Value 2 = Time Both times are constantly changing yes. <table> <tr> <td>Name 1</td><td>Name 2</td> </tr> <tr> <td>Time 1</td><td>Time 2</td> </tr> </table> So the times above would be pulled from the database and updated every 2-5 seconds
  3. Hi, thanks for taking the time to read this. Probably pretty basic for most but i'm struggling even after watching videos and reading different forum posts. Here is what i am trying to do. I want to watch some data without the need to refreshing the page. The database stores the data using time() and then runs through a time function to convert it to a seconds and minute output(examples "00s"/"13m 44s"). I need to pull this and have it refresh automatically and been told due to how basic this is i should be able to do it in javascript using fetch() but i am struggling to get pages talking and just completely confused how to pull the data in php and then pull using javascript. Any advise would be greatly appreciated as well as and examples and explanations on why you are doing what you are.
×
×
  • 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.