Joywork/ajax/set_status.php

15 lines
232 B
PHP
Raw Permalink Normal View History

2026-05-22 20:21:54 +02:00
<?php
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
if($_SESSION['id'] && $_GET['id_client'] && $_GET['status'])
{
$sql = "UPDATE clients SET status='$_GET[status]' WHERE id=$_GET[id_client]";
mysql_query($sql);
}