Question: I know this sounds like it's really easy and it probably is but I can't seem to get it working. My question is how do you retrieve an image from a database where I am very sure I have the right directory set out. The main thing I am trying to do is display an image from the database if certain options are selected. I am very sure I have the database connection right, the variables and all fine too.
I have the php code spread out over two files.
Note: It is elseif because there is an IF statement before it

Here is the relevant code:

```
elseif ($MakeLeftvar == 'Mitsubishi1' && $ModelLeftvar == 'Lancer1' && $YearLeftvar == '1973 - 1979') {
while ($MitFetchImg1 = mysql_fetch_array($MitStateImg1)) {
}

```

Here is the image being retrieved:

`<img src="<?php echo($MitFetchImg1[0]); ?>" height="100" width="100" >`

Here is where the fetching of the database table is made.

```
$MitStateImg1 = mysql_query("SELECT Images FROM Mitsubishi_Images");

```

Here is the screenshot of the mysql:[![enter image description here](https://i.stack.imgur.com/Li8qZ.png)](https://i.stack.imgur.com/Li8qZ.png)

All help is welcome and greatly appreciated. Please no mockery if it is very easy.

Thank you.

Answer: 
```
totalData = [data, data2, data3, ... , data1000]

```

Would be the easiest way to do this if you have no way to iterate over the data.
You can also use `np.vstack`

```
import numpy as np
data = [-2, -1, -3, -5, 2, 5, 8, 9, 8]
np.vstack([data, data])
# [[-2 -1 -3 -5  2  5  8  9  8]
#  [-2 -1 -3 -5  2  5  8  9  8]]

```