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