<?
    $_id 
= isset($_GET['i']) ? intval($_GET['i']) : 0;
    
$_back = isset($_GET['b']) ? trim(str_replace('@''&'$_GET['b'])) : 's=home';
    
$_comment = isset($_POST['comment']) ? trim(strval($_POST['comment'])) : '';

    if (
$_id)
    {
        
$tiles mysql_query("SELECT * FROM tiles WHERE tile_id = " sq($_id) . " AND user_id = '" $GLOBALS['auth']['id'] . "'");
        if (
$tiles_row mysql_fetch_assoc($tiles))
        {
            
mysql_query("UPDATE tiles SET comment = " sq($_comment) . " WHERE tile_id = " sq($_id));
        }
    }

    
header('Location: ./?' $_back);
    die;
?>