Add: pass appID to start.html
This commit is contained in:
@@ -25,15 +25,16 @@ function get_active_app_list($maestro_id) {
|
||||
$return_array = array();
|
||||
|
||||
$query = "
|
||||
SELECT A.AppName, A.AppType
|
||||
SELECT A.AppID, A.AppName, A.AppType
|
||||
FROM moty_app AS A
|
||||
INNER JOIN moty_active_app AS AA ON A.AppID = AA.AppID AND AA.MaestroID=?";
|
||||
$stmt = $db_conn->prepare($query);
|
||||
$stmt->bind_param('i', $maestro_id);
|
||||
$stmt->execute();
|
||||
$stmt->bind_result($app_name, $app_type);
|
||||
$stmt->bind_result($app_id, $app_name, $app_type);
|
||||
|
||||
while($stmt->fetch()) {
|
||||
$row_array['AppID'] = $app_id;
|
||||
$row_array['AppName'] = $app_name;
|
||||
$row_array['AppType'] = $app_type;
|
||||
array_push($return_array, $row_array);
|
||||
|
||||
Reference in New Issue
Block a user