Question: I have this php code:

```
foreach($output as $row) {      

    $table.="<tr>";
    foreach($row as $column) {
        $table .="<td>";
        $values = implode(",",$column);
        $table .= count($column);   
        $table .="</td>";
    }
    $table.="</tr>";    
}

$table.="</table>";

echo $table;

```

This code gives me the results as an horizontal output.
[Horizontal table](https://i.stack.imgur.com/LaWZN.png)

But I need it in vertical position. Like this:

[Vertical table](https://i.stack.imgur.com/0ajYf.png)

Is it possible to get this result with a simple change?

*Note: I couldn't change the direction of the numbers in the second image.*

There are more than a single row, so the desired table should be something like this:

[sample table](https://i.stack.imgur.com/hNjkv.png)

Answer: 
It's completly normal to have an POST request with a content of

```
{
   username: "myName123",
   password: "myPassword456"
}

```

You can see this in almost every service, which requires authentication.
When you do this, make sure your communication with the client is encrypted (HTTPS) so that a man in the middle can't read it.
1. Don't trust the user - clean the input from stuff that should not be there.
2. Encode / hash the input by adding something to mix up the logic.
3. Decode / dehash and verify.

When you encode something with built in feature - like base64 then add some variable to the string that makes it more random.