Javascript/PHP/MYSQL Time Functions

gesf

Active member
Hey yuslav.
First try printing your $_GET['userid'] to see what you have. Don't forget the ; at the ends of this :)
Also change your code to something like this: trim($_GET['userid']);
The funtion trim() is only to strip whitespace from the beginning and end of a string, but i've seen weird result when not using it.

About the time functions, i always suggest people to use date/time in unix TIMESTAMP format.
This way you can easy generate, compare, tranform your resulting date and time.
 
Back
Top