Ciao sono nuovo ed ho bisogno di una mano.
Ho una tabella in mysql con i seguenti campi id, modello immagine e link
i primi due ovviamente primary e varchar (255) immagine ho fatto varchar(255)
MIME: text/plain (imagelink) e link varchar(100)
MIME: text/plain
La pagina php legge bene la tabella però non riesco a vedere le immagini ed i link...
Vi posto il codice:
[PHP]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Offerte Scarpe</title>
<link href="tabella.css" rel="stylesheet" type="text/css">
</head>
<body>
<font size ='4px'> <p align="center">OFFERTE </font></p>
<table>
<?php
include ("config4.php");
//include ("mostra.php");
$result = mysql_query("SELECT * FROM test{$test}");
if (!$result) {
die("Query to show fields from table failed");
}
$fields_num = mysql_num_fields($result);
echo "<h1>Last Minute {$test}</h1>";
echo "<table border='1'><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++)
{
$field = mysql_fetch_field($result);
echo "<td>{$field->name}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
echo "<tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td>$cell</td>";
echo "</tr>\n";
}
mysql_free_result($result);
?>
</body></html>
Come posso fare???
Ciao e grazie