You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
402 B
11 lines
402 B
<?php
|
|
require('../../contract-repair/conn.php');
|
|
$accountid = empty($_GET['accountid']) ? '' : $_GET['accountid'];
|
|
$sql = "SELECT name,manager FROM account WHERE accountid = :accountid";
|
|
$stmt = $conn->prepare($sql);
|
|
$stmt->bindParam(':accountid', $accountid);
|
|
$stmt->execute();
|
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
|
|
header('Content-Type: application/json');
|
|
echo json_encode($result);
|
|
|