I have timestamp Thu, 07 May 2015 16:52:43 GMT
stored like this:
$timestamp = 1431017563117;
Variable with this value was produced by Java (Location.getTime() method from Android SDK).
I'm trying to store it in database, with mysqli->bind_param();
method. My field has TIMESTAMP
type.
I have tried this:
$stmt->bind_param('di', $timestamp, $Id);
And this:
$stmt->bind_param('ii', $timestamp, $Id);
It just doesn't work, and MySQLi error gives me nonsense message like this:
Creating default object from empty value in server.php on line 118
How should I do it properly?