Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Raphael Cruz

[Resolvido] Imagem php

Recommended Posts

Estou tentando fazer que uma imagem que eu

cadastrei no banco de dados abra numa tabela só que a

tabela fica vazia com um "x" eu acho que ela nçao ta reconhecendo

a imagem, se alguém puder me ajudar agradeço.

 

<div id="gil" class="innercontent"><table width="774" border="0" cellpadding="2">  <tr>    <td><table width="783" border="0" align="center" cellspacing="11">      <tr>        <td width="181" height="222" background="images/fundo_tabela_index.gif">        <table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>           <td bordercolor="#000000" border="1"><img src="imagem.php" width="160" height="116" border="1" //aqui que eu estou tentando botar a foto, só que cada tabela vai ter uma foto diferente /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table>          </td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK1.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK2.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK3.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>      </tr>    </table></td>  </tr></table>	    <table width="774" border="0" cellpadding="2">  <tr>    <td><table width="783" border="0" align="center" cellspacing="11">      <tr>        <td width="181" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK4.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table>          </td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK5.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK6.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK7.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>      </tr>    </table></td>  </tr></table>	</div>	<div id="joey" class="innercontent"><table width="774" border="0" cellpadding="2">  <tr>    <td><table width="783" border="0" align="center" cellspacing="11">      <tr>        <td width="181" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK8.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table>          </td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>          <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK9.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK10.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK11.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>      </tr>    </table></td>  </tr></table>    <table width="774" border="0" cellpadding="2">  <tr>    <td><table width="783" border="0" align="center" cellspacing="11">      <tr>        <td width="181" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK12.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table>          </td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK13.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK14.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>        <td width="182" height="222" background="images/fundo_tabela_index.gif"><table width="150" height="185" border="0" align="center" cellspacing="5">          <tr>         <td bordercolor="#000000" border="1"><img src="images/FAST-CLICK15.jpg" width="160" height="116" border="1" /></td>          </tr>          <tr>            <td><p class="style1"><span class="style3">dsfsfsfsfsfdfsfsgggksjbgkg<br />            ggdsggjbkbiiiubbnonnono<br />            bibiuiubiubibiubiubiubiubbi<br />            ibibuibiubiubiubiubibibibibib<br />            bibiibibibibibisdffsfsfdffsdf</span></p>              </td>          </tr>        </table></td>      </tr>    </table></td>  </tr></table>    </div>

 

 

imagem.php

 

<?php$host = "localhost";$user = "root";$pass = "";$db = "fast";mysql_connect($host,$user,$pass);mysql_select_db($db);$sql = "SELECT * FROM `ultimoseventos` WHERE idultimoseventos";$query = mysql_query($sql);$x = mysql_fectch_array($query);echo "<img src='../images/$img' />";?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.