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.
16 lines
428 B
16 lines
428 B
<?php
|
|
require_once('../conn.php');
|
|
try{
|
|
$id = $_GET['id'];
|
|
$sql_str = "SELECT * FROM pricereview_main WHERE id = :id";
|
|
$stmt = $conn->prepare($sql_str);
|
|
$stmt->bindParam(':id',$id);
|
|
$stmt->execute();
|
|
$prices = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
header("Content-Type: application/json");
|
|
|
|
echo json_encode(['prices'=> $prices]);
|
|
|
|
}catch (PDOException $e ){
|
|
die("ERROR!!!: ". $e->getMessage());
|
|
}
|