update.php

<?php
    $uid = $_GET["userid"];
    $query = "UPDATE TABLENAME SET TIMESTAMP = GETDATE() where user_id = $uid";
    $status = mysqli_query($query, $con);
    echo "updated !";
    exit;
Başa dön tuşu