DELETE FROM `tablename` WHERE timestampColumn < NOW() - INTERVAL 7 DAY ORDER BY `tablename`.`timestampColumn` DESC If you have a numeric timestamp then …
Blog
How To Set A PHP Object Property With A Dynamic Name
$myObject->{$name} The {} around the variable are the key :) …
[Read more...] about How To Set A PHP Object Property With A Dynamic Name
Found This Cool Way To Normalize Your PHP Data Using JSON
Converting an array/stdClass -> stdClass $stdClass = json_decode(json_encode($booking)); Converting an array/stdClass -> array The manual …
[Read more...] about Found This Cool Way To Normalize Your PHP Data Using JSON