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
Ïà¹ØÎĵµ£º
ÈçºÎÔÚ¿Í»§¶ËÖ±½Óµ÷ÓÃWebServiceÖеķ½·¨£¿
ÕâÀï½áºÏ¾Ñé×Ô¼ºÐ´Ò»Ð´
1.Ê×ÏÈн¨Ò»¸ö ASP.NET AJAX-Enabled Web Site,ÕâÑùϵͳΪÎÒÃÇ×Ô¶¯ÅäÖúÃÁË»·¾³£¬ÕâÖ÷ÒªÌåÏÖÔÚWeb.configÕâ¸öÎļþÉÏ£¬Èç¹ûÒÑÓÐÍøÕ¾²»ÊÇASP.NET AJAX-Enabled Web SiteÒ²¿ÉÒÔ¶ÔÕÕÐÞ¸ÄÏÂWeb.config£¬Ò²¿ÉÒÔ´ïµ½ÏàͬµÄЧ¹û¡£
2.н¨Ò»¸öweb·þÎñ£¬WebSer ......
1¡¢AddcSlashes ×Ö·û´®¼ÓÈ뷴бÏß
Óï·¨£ºstring addcslashes(string str,string charlist);
2¡¢AddSlashes ×Ö·û´®¼ÓÈ뷴бÏß
Óï·¨£ºstring addslashes(string str);
ÔÚÌØ¶¨µÄ×Ö·ûǰ¼Ó·´Ð±Ïߣº'¡¢"¡¢\¡¢NULL
3¡¢bin2hex ½«¶þ½øÎ»×ª³ÉÊ®Áù½øÎ»
Óï·¨£ºstring bin2hex(string str);
4¡¢Chop È¥³ýÁ¬Ðø¿Õ°×,ͬrtrim()
Óï· ......
££££££££££££££
°²×°pear
££££££££££££££
pearÊÇPHPµÄÀ©Õ¹ºÍÓ¦ÓóÌÐò¿â£¬°üº¬Á˺ܶàÓÐÓõÄÀ࣬°²×°ºÃphp5.0ºó£¬pearʵ¼ÊÉϲ¢Ã»Óб»°²×°£¬°²×°µÄ·½·¨ÈçÏ£º
1.ÔÚphpĿ¼ÖÐË«»÷go-pear.bat¡£
2.°´ÕÕÌáʾÊäÈëһЩÉèÖÃÐÅÏ¢£¬ ......
header("HTTP/1.0 400 Bad Request");¡¡·µ»Ø400´íÎó
header("HTTP/1.0 404 Not Found"); ·µ»Ø404´íÎó
header("Location:http://$host$uri/$extra"); Ìø×ª
//ÉèÖÃnocache¡¡£¬¹ýÆÚ
header
(
"Cache-Control: no-cache,
must-revalidate"
);
//
HTTP/1.1
header
(
&q ......