I want to thank the moderator and participants of this forum for all the help I have been given. It is great! I can't wait to return the favors.
When I add the following code to the body of the function, the application stops passing back HTML to the browser.
function postaction($id, $startmonth, $startday, $startyear) {
authenticate();
dbconnect();
include ("config.php");
$startdate = "$startmonth" . "$startday" . "$startyear";
$postdate = date('Y-m-d');
$query = "UPDATE IPM_tasks SET exported='1', exportdate='$postdate' WHERE id='$id' AND enddate >= '$startdate' AND status=0";
if (mysql_query($query)) {
echo ="Post Updated Successfully";
} else {
echo ="Error Posting Completed Tasks";
}
}
I copied this code from another function that is working and so I wonder if I am calling it correctly.
I am invoking the method from a submit button and I do not load another page. I was hoping to call a third function to load the browser with new data.