Eu tenho um banco no qual eu envio imagens ate ai tudo bem o problema é na hora de chamar estas imagens… vejam:
Aqui eu envio a imagem
<input type="file" value='file">
<input type="submit" value="Enviar Imagem">
Aqui eu chamo a imagem:
<?php
include '../php/conexao.php';
$resultado = mysql_query("SELECT * FROM produtos") or die(mysql_error());
if($resultado){
while($row = mysql_fetch_assoc($resultado)){
?>
<div style="width:100px;height:30px;"><tr style="float:left;"><td ><img src="<?php echo $row['foto'];?>" style="float:left;" align="center" class="img-index" title="<?php echo $row['nome']?>"/><p class="descricao-img-index"> <?php echo $row['descricao'];?> <?php echo $row['marca'];?> - Por: <?php echo $row['preco'];?>R$</p><input type="submit" value="Comprar"></td></tr></div>