Question: Here is [array of objects](https://i.stack.imgur.com/f5Vhs.jpg) from which , i want to get value corresponding to keys , for e.g `"ERROR"` in this case for key `status`. This status may come at any index of array of objects. How do filter throughout array and get key and values.

i have `response` object which gives dynamic array objects from which i can get by using `Object.values(response)[0].responseStatus.status`
for some case `Object.values(response)[0].status` . How do get using programmatically using jquery.

Answer: 
I'm taking a wild guess here, so I'm assuming you want to select a user from a dropdown (That could be a bad idea if many people are in said database), but you would want to make a simple HTML form and name it somethign you will remember. Under the form put this?

```
<?php
if(isset($_POST['formnamehere'])) {
$sql = "SELECT * FROM (table name) WHERE accountname=" . $accountname;
$result = $conn->query($sql);
$row = $result->fetch_assoc();
echo $row['accountname'];
//put other things here, etc.
}
?>

```

Granted this code is not meant to be used exactly. but to give you a general idea.
You can run a query with your active connection to fetch your respective information from the table you want, along with a search clause for where the name is equal to a given value.

**Query:**

```php
$result = mysqli_query($con, "SELECT `data` FROM `table` WHERE `name` = '$name';");

```

You can then display your data on your front end by outputting the result.

```php
<?php
    if($row = mysqli_fetch_array($result)) {
        echo $row["data"];
    }
?>

```