http://forum.wmonlin...showtopic=95448
Só que o meu caso é quase igual a este, na minha tabela tem a coluna foto_extra_url, estou gravando os registros assim:
images/foto01.jpg, images/foto02.jpg etc... (no servidor fica /var/www/html/animes/images/)
QUANDO é somente images/foto01.jpg eu consigo fazer ele aparecer...
Outro detalhe é que a foto deve corresponder ao ID[titulo].
Código do que to fazendo (ok ok ta podre, é porque estou empacado
<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html401/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="List of Animes">
<link rel="stylesheet" type="text/css" href="style.css">
<title>List of Animes</title>
</head>
<body>
<div id="content">
<center>
<?php
require 'conexao.php';
function displayAlbum($result)
{
$row = @ mysql_fetch_row($result);
print "\n<table width=\"100%\" border=\"0\" cellspacing=0 cellpadding=4>\n<tr align=\"center\"> \n";
print "<tr align=\"center\" class=\"seen\">";
if($row[18] == NULL || $row[18] == "")
print "\n\t<td><img src=\"indisponivel.jpg\" border=0 title=\"Imagem extra indisponível :(\">";
else
print "\n\t<td><img src=\"$row[18]\" border=0 title=\"Extra\"></td>";
print "<th width=\"50%\"></th>";
print "<th width=\"50%\"></th>";
print "\n</table>\n";
}
$album_id = (int)$_GET['titulo'];
$query = "SELECT id,titulo,genero,idioma,legenda,visto,year,qualidade,rating,
DATE_FORMAT(last_modified, '%d-%m-%Y %H:%i:%s'), description,qtd,album_art_url,tipo,fansub,status,duracao,size,foto_extra_url
FROM albums WHERE id = $album_id";
// Connect to the MySQL server
if (!($connection = @ mysql_connect($hostname, $username, $password)))
die("Sem conexão com o Banco =(");
if (!(mysql_select_db($databaseName, $connection)))
showerror();
// Run the query on the connection
if (!($result = @ mysql_query ($query, $connection)))
showerror();
// Display the results
displayAlbum($result);
?>
<p><br><br>
<a href='index.php'>Principal</a> |
<a href='lista_animes.php?letra=TODOS&mostra=TODOS&sort=titulo&dir=ASC&from=0'>Todos Cadastrados</a>
</center>
</div>
</body>
</html>Daí não consigo ter idéias.
Alguém poderia me ajudar?
Muito obrigado.



Postagens
Não informado
