I want to display an image I registered in the database

Asked

Viewed 19 times

0

<?php 
   $result = ExibirDados();
     while ($resultado = mysqli_fetch_array($result))
         { ?>
            <tr>
                <td><img <?php echo "src=upload/".$resultado.">"; ?> </td>
                <td> 
  <?php } ?> 

is giving this error Notice: Array to string Conversion in C: xampp htdocs Constructesfree Dozero index.php on line 150 src=upload/Array>

  • 1

    Would not be $resultado["nome_do_campo_imagem_na_tabela"] ?

  • correct, thank you worked out !

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.