I want a simple that when I click, it loads the content from a file file.php. I also need the Ajax to send a string to file.php
This is my file.php
session_start();
include("../database.php");
if (isset($_GET['id'])) {
$to = $_GET['to'];
mysql_query("UPDATE `flashchat` SET `open` = '1' WHERE `to` = '$to' AND `from` = '$_SESSION[id]'");
}
The PHP string
$chatinfo[id];
Thanks!