Hi, thanks for your reply.
i use dataProcessor, here is my code:
index.php:
var dp = new dataProcessor(“data/update_events.php”);
dp.init(scheduler);
dp.enableUTFencoding(false);
data/update_events.php:
function add_row(){
mysql_query(“SET NAMES ‘utf8’”);
$sql = “INSERT INTO calmwd_events(start_date,end_date,text,details,section_id,type,create_by,num_inter,id_client,urgent,na,fait,pieces,rec_type,event_length,event_pid,lat,lng,date_add,tel)
VALUES (’”.$_GET[“start_date”]."’,
‘".$_GET[“end_date”]."’,
‘".$_GET[“text”]."’,
‘".$_GET[“details”]."’,
‘".$_GET[“section_id”]."’,
‘".$_GET[“type”]."’,
‘".$_GET[“create_by”]."’,
‘".$_GET[“num_inter”]."’,
‘".$_GET[“id_client”]."’,
‘".$_GET[“urgent”]."’,
‘".$_GET[“na”]."’,
‘".$_GET[“fait”]."’,
‘".$_GET[“pieces”]."’,
‘".$_GET[“rec_type”]."’,
‘".$_GET[“event_length”]."’,
‘".$_GET[“event_pid”]."’,
‘".$_GET[“lat”]."’,
‘".$_GET[“lng”]."’,
‘".date(“Y-m-d H:i”)."’,
‘".$_GET[“tel”]."’)";
$res = mysql_query($sql);
$newId = mysql_insert_id();
return “insert”;
}