<?php
require_once 'dy_functions.php';
$j = $_POST['msg'];
$result = queryMysql( 'SELECT * FROM task WHERE idt="$j"');
echo json_encode($result);
?>
function taskOpen(i)
{
$.ajax({
url: "taskOpen.php",
data: { msg: i },
method: "post",
type: "json",
success: function(date) {
$("#wintask").prepend("<div class='subtask'>"
+date.theader
+date.tprice
+date.ttext+"</div>");}
})
}