/the cart table has 4 fields; id, username, product id, image. I am trying show all the data in a table. 

```
<?php

$query = "SELECT * FROM cart WHERE user_name='$username'";

if ($stmt = mysqli_prepare($mysqli, $query)) {

    /* execute statement */
    mysqli_stmt_execute($stmt);

    /* bind result variables */
    mysqli_stmt_bind_result($stmt,$username);

    /* fetch values */
    while ($row=mysqli_stmt_fetch($stmt)) 

{

```