Ciao, io ho fatto questo codice
Ma non capisco perchè non mi mostra i record della categoria MEMORIE#ADATTATORI sapete aiutarmi??Codice PHP:
<?
include("include/config.php");
$query = mysql_query("SELECT * FROM youbuy WHERE categoria ='MEMORIE#ADATTATORI' ORDER BY id");
while($result = mysql_fetch_array($query)) {
$id = $result ['id'];
$img = $result['immagine'];
$link = $result['link'];
echo "<table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" style=\" border:1px dashed #000000;\">
<tr><td align=\"left\" width=\"100\" height=\"100\">";
echo "<img src=\"$img\" width=\"100\" height=\"100\" border=\"0\">";
echo "</td><td align=\"center\" valign=\"top\">
<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr><td align=\"right\" height=\"15\"> [b]Costo:[/b]";
echo $result['prezzo'];
echo "</td></tr>
<tr><td align=\"left\" height=\"85\" valign=\"top\" class=\"pagina\">[b]Marca:[/b]";
echo $result['marca'];
echo "
[b]Modello:[/b]";
echo $result['modello'];
echo "
";
echo "
[b]Descrizione:[/b]";
echo $result['descrizione'];
echo "</td></tr>
</table>
<table border=\"0\" width=\"90%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr><td width=\"90%\" align=\"center\">
[b][url='$link']$ordini[/url][/b]</td></tr></table></table>
";
}
@mysql_close();
?>
Grazie ciaoo