PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Finding the difference between the two individual marks will tell you the number of seconds which have passed between them. It's simple math from there.
if $row['LastTurnUpdate'] is a mysql timestamp, probably the easiest thing to do would be to modify the query to wrap LastTurnUpdate in UNIX_TIMESTAMP().
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
pickle wrote:
if $row['LastTurnUpdate'] is a mysql timestamp, probably the easiest thing to do would be to modify the query to wrap LastTurnUpdate in UNIX_TIMESTAMP().
Sure. But I'd imagine there are cases when it's not possible...