mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Now displays data from last process run
When refreshing, will not continually create new processes XHTML head refresh function can clear any GET requests
This commit is contained in:
@@ -217,4 +217,27 @@ function process_get_data($process_id)
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data from the last process run
|
||||
*
|
||||
* @return string Data from the last process, or an empty string if not available
|
||||
*
|
||||
*/
|
||||
function process_get_last_data()
|
||||
{
|
||||
global $db;
|
||||
|
||||
$sql = "SELECT `data`
|
||||
FROM `process`
|
||||
ORDER BY `process_id` DESC
|
||||
LIMIT 1";
|
||||
|
||||
$rs = $db->GetRow($sql);
|
||||
|
||||
if (!empty($rs))
|
||||
return $rs['data'];
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user