php jquery Ajax Ìá½»¡¢¶ÁÈ¡ json
<mce:script type="text/javascript" language="javascript"><!--
function del(com_id,meet_id){
$.ajax({
url:'../company/meet.Ajax.php',
type:'POST',
data:{com_id:com_id,meet_id:meet_id},
dataType:"json",
timeout: 1000,
error: function(){
alert('Sorry, the server is busy now, please try again later.');
},
success: function(data){
if(data){
$("#row_"+data.meet_id).remove();
if($("#meeting_info").find("tr").length==1){
var tds = $("#meeting_info>tbody>tr:last").find("td").length;
$("#meeting_info>tbody").append('<tr id ="no_meet" <?=linecolor_v2(1)?> height="22" align="left"><td colspan="'+tds+'"><b>there is no meet now.</b></td></tr>');
}
} else {
alert("sorry, delete fail, please try again later.");
}
}
});
}
if($("#meeting_info").find("tr").length==1){
var tds = $("#meeting_info>tbody>tr:last").find("td").length;
$("#meeting_info>tbody").append('<tr id ="no_meet" <?=linecolor_v2(1)?> height="22" align="left"><td colspan="'+tds+'"><b>there is no meet now.</b></td></tr>');
}
// --></mce:script>
<?
$retval = '{"status":"fail"}';
if($_REQUEST['meet_id'] && $_REQUEST['com_id']) {
include_once("../include/function.php");
include_once("../include/dbconnect.php");
global $connectionid,$SITE_PARAS, $AGENT_INFO;
//data:{com_id:com_id,meet_id:meet_id}
$sql = "DELETE from RDL.MEETING WHERE MEET_PID = TO_NUMBER('".$_REQUEST['meet_id']."') AND COM_PID = TO_NUMBER('".$_REQUEST['com_id']."')";
$result = sql_exec($connectionid, $sql, false);
//print
Ïà¹ØÎĵµ£º
login¡£phpÌý˵ҪÓøöµÚÈý·½Ò³ÃæÀ´ÊµÏÖÌøת¡£ËµÊÇΪÁË°²È«·½ÃæµÄ¿¼ÂÇ¡£ÎÒÔÙÏëÏë°É~
ÏÈ°Ñ´úÂëÌù³öÀ´
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta h ......
< ?php
require("mail/class.phpmailer.php");//µ÷ÓÃ
$mail = new PHPMailer();//ʵÀý»¯phpmailer
$address = "mailxi@126.com";//½ÓÊÕÓʼþµÄÓÊÏä
$mail->IsSMTP(); // ÉèÖ÷¢ËÍÓʼþµÄÐÒ飺SMTP
......
¡¡¡¡¶Ô±ÈÆð Cookie£¬Session ÊÇ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ»á»°£¬Ïà¶Ô°²È«£¬²¢ÇÒ²»Ïñ Cookie ÄÇÑùÓд洢³¤¶ÈÏÞÖÆ£¬±¾Îļòµ¥½éÉÜ Session µÄʹÓá£
¡¡¡¡ÓÉÓÚ Session ÊÇÒÔÎı¾ÎļþÐÎʽ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ£¬ËùÒÔ²»Å¿ͻ§¶ËÐÞ¸Ä Session ÄÚÈÝ¡£Êµ¼ÊÉÏÔÚ·þÎñÆ÷¶ËµÄ Session Îļþ£¬PHP ×Ô¶¯ÐÞ¸Ä Session ÎļþµÄȨÏÞ£¬Ö»±£ÁôÁËϵͳ¶ÁºÍдȨ ......
1.ÅÖ¿Í»§¶ËµÄ²¿Êð·½°¸
java web start
.net clickonce
2.ÈëÇÖ˼·
HTTPÊý¾ÝµÄ¼Ç¼->·¢ÏÖajax¿ÉÄÜ´æÔÚÎÊÌâµÄµã->ÈƹýjavascriptµÄһЩÏÞÖƺÍÆƽâjavascript»ìÏý´úÂë->ÕÒµ½jsonµÄsql×¢Èëµã->ÕÒµ½ajax¿ÉÒÔÌí¼Ó¹ÜÀíÔ±µÄ»Øµ÷º¯ÊýºÍjsonÏà¹Ø
3.sql×¢ÈëС¼¼ÇÉ
union select name from sysobjects where xtype='U ......
±¾ÕÂ˵˵±äÁ¿µÄ¶¨Òå¡£
Èç¹û¶ÔÓÚ±äÁ¿ºÍ³£Á¿µÄ¶¨Ò壬Äã»á×¢Ò⼸¸ö·½ÃæÄØ£¿Äã¿ÉÄÜ»áÏëµ½£º
ÈçºÎ¶¨Òå±äÁ¿£¬ËüºÍC# µÈÓïÑÔÓÐʲô²»Í¬ÄØ£¿
±äÁ¿Çø·Ö´óСдÂð£¿
PHPµÄ±äÁ¿»¹ÓÐÆäËûÖØÒªµÄÂð£¿
³£Á¿ºÍ±äÁ¿µÄ¶¨ÒåÒ»ÑùÂð£¿
·Ö±ð½²Êö°É¡£
1.ÈçºÎ¶¨Òå±äÁ¿£¬ËüºÍC# µÈÓïÑÔÓÐʲô²»Í¬ÄØ£¿
PHP ÖеıäÁ¿ÓÃÒ»¸ ......