There are these two variables:
Expand|Select|Wrap|Line Numbers
- $timestamp = $_POST['date'];
- $current_date = date('j/M/y', $timestamp);
Expand|Select|Wrap|Line Numbers
- if(isset($_POST['submit'])){
- $query = "INSERT INTO news (`headline`, `body`, `image`, `date`)
- VALUES ('$headline', '$body', '$image', $current_date);";
- $result = $mysqli->query($query);
- }