The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a point in the right direction
#1
Well I'm back, and having a hell of a time figuring out what I'm doing haha. My inexperience with PHP is showing and I have no idea how to get what I want done...done. I haven't coded with this stuff in 5-6 years so I'm quite out of touch.

Basically, I'm just looking for some help on getting a single function done. Once I figure that out, I'm confident I can take it from there and run with it. I just need help with the basics to get me started.

So for one, I need to add another row/column (I think?) to your database where I can log times when a button is pressed. I have no idea how to do that, but I plan on trying in phpMyAdmin to see how that works out. Problem is I don't know what options to use...I just know that I need to be able to store timestamps in it.

Second, I don't know what an example code would look like to set that timestamp into the DB for that relevant user. I've tried Google and my other team member tried coding something from scratch himself and we both are failing to figure out how to keep any DB entries made by a user stuck to that user's session.

I'm trying to make something like a time clock but not really...it will evolve into tracking breaks of team members as a whole, showing realtime who is on break and for how long they've been on break, give reports to myself and the other supervisor about often people are up out of their desks, etc.
  Reply


Messages In This Thread
Need a point in the right direction - by sandrews - 11-18-2016, 06:02 PM
Need a point in the right direction - by dan - 11-18-2016, 06:33 PM
Need a point in the right direction - by sandrews - 11-18-2016, 06:44 PM
Need a point in the right direction - by dan - 11-18-2016, 06:47 PM
Need a point in the right direction - by sandrews - 11-19-2016, 04:04 AM
Need a point in the right direction - by Brandin - 11-19-2016, 02:19 PM
Need a point in the right direction - by dan - 11-19-2016, 05:14 PM
Need a point in the right direction - by sandrews - 11-19-2016, 10:25 PM
Need a point in the right direction - by sandrews - 11-20-2016, 12:23 AM
Need a point in the right direction - by sandrews - 11-20-2016, 02:40 AM
Need a point in the right direction - by mudmin - 11-20-2016, 05:57 PM
Need a point in the right direction - by mudmin - 11-20-2016, 06:04 PM
Need a point in the right direction - by sandrews - 11-21-2016, 05:39 PM
Need a point in the right direction - by mudmin - 11-21-2016, 07:42 PM
Need a point in the right direction - by sandrews - 11-22-2016, 12:58 AM
Need a point in the right direction - by mudmin - 11-22-2016, 01:00 AM
Need a point in the right direction - by sandrews - 11-22-2016, 03:43 AM
Need a point in the right direction - by mudmin - 11-22-2016, 07:42 AM
Need a point in the right direction - by sandrews - 11-23-2016, 06:47 PM
Need a point in the right direction - by sandrews - 11-24-2016, 12:43 AM
Need a point in the right direction - by mudmin - 11-24-2016, 03:55 PM
Need a point in the right direction - by sandrews - 11-24-2016, 04:10 PM
Need a point in the right direction - by mudmin - 11-24-2016, 04:19 PM
Need a point in the right direction - by sandrews - 11-24-2016, 09:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)