使用ajax调用一个简单的PHP函数[关闭]

How can i call a php function with a query inside on ajax?

My html:

<input type="submit" value="Open Process" name="openProcess" id="openProcess" onclick="javascript:applicationOpenProcess()" >

And my php function:

function openProcess(){
    $id = $_GET['application']; //Nodata need where is coming from the URL
    $openProcess = "UPDATE applications SET  process='1' WHERE application_id='".$id."'";
    $valProcess = db_query($openProcess, "+"); //function to execute query
}

Guys i really need help on this one Thanks mates

查看全部
douyi3760
douyi3760
2014/04/28 09:09
  • function
  • php
  • ajax
  • jquery
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

4个回复