当我点击确认按钮更改phpMyAdmin时的值,但是我的管理员在刷新页面后它正在改变
这是一个代码
<input type="hidden" value="<?php echo $idd; ?>" name="order_id_value">
<input type="submit" class="btn-conf" name="u_confirmed" value="Confirmed"><br>
<input type="submit" name="u_dispatch" class="btn-dispatch" value="Dispatch"><br>
<input type="submit" name="u_spam" class="btn-spam center" value="Spam"><br>
<input type="submit" name="u_delete" class="btn-delete" value="Delete">
<?php
if (isset($_POST['u_confirmed'])) {
$iddd = $_POST["order_id_value"];
/* $wpdb->query($wpdb->prepare("DELETE FROM wprf_quickorder WHERE order_id = %d",$iddd)); */
$wpdb->query( $wpdb->prepare("UPDATE wprf_quickorder SET status = 'Confirmed' WHERE order_id = %d",$iddd) );
}
我该如何解决这个问题?