prepare("SELECT * FROM hotspot_users WHERE user_id =:user_id"); $stmt->execute(array(':user_id' => $user_id)); $row=$stmt->fetch(PDO::FETCH_ASSOC); echo json_encode($row); } // End Getting Sysuser details ?>