Closed adius closed 6 years ago
This does not work:
$insertId = $database->insert('vouchers', [ 'code' => $code, 'value' => $value, '#expires' => "from_unixtime($timeStamp)", ]);
But this does:
$insertId = $database->insert('vouchers', [ 'code' => $code, 'value' => $value, '#expires' => "FROM_UNIXTIME($timeStamp)", ]);
SQL is case insensitive and therefore both versions should work!
Check out the new feature raw object https://medoo.in/api/raw. Case insensitive also works, but we recommend capitalize with this for better readability.
This does not work:
But this does:
SQL is case insensitive and therefore both versions should work!