Well thanks for the code, but the actual problem is actually more complex.
On my site (tournament site) hosts can set a time, with a sign up time (which they an choose, like 1h before the actual start etc.)
I have 4 fields in the MySQL Table, called TrnyStartH (hour), TrnyStartM (minute), TrnyWhen (am/pm) and TrnySignUp. each field gets set by a field on the page where you can set the Start Time.
Now I get the field TrnyStartH and count it minus with TrnySignUp. It works fine if its for example, 5h - 2 (sign up).
But if its 1h pm - 2 i will get a different result, i expect 11am but what i get is -23.
Heres the current code i use (easy one)
$TrnySignTime = $rows[TrnyStartH]+$rows[TrnySignTime];
Well, thats it. I dont know how to fix that problem, heres an example for the error: http://www.gc.page.it/tourney.php?tid=2
Thanks!