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.
15 lines
344 B
15 lines
344 B
<?php
|
|
|
|
require_once('../conn.php');
|
|
|
|
$accountid = $_GET['user_id'];
|
|
if($accountid == "---"){
|
|
echo "---";
|
|
exit;
|
|
}
|
|
$sql_str = "SELECT name FROM account WHERE accountid = :accountid";
|
|
$stmt = $conn->prepare($sql_str);
|
|
$stmt->bindParam(':accountid', $accountid);
|
|
$stmt->execute();
|
|
$user = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
echo $user['name'];
|