all'inizio della pagina di ranci.php ho messo questo:
lo richiamo così:
Ma il campo
non mi viene fuori perché 
PHP:
<?php
require ("db_connect.php");
$id_annunci=$_GET['id'];
$query = mysql_query ("SELECT * FROM
annunci INNER JOIN regione ON (annunci.regioneid=regione.id )
INNER JOIN provincia ON (annunci.provinciaid=provincia.id)
INNER JOIN citta ON (annunci.cittaid=citta.id)
INNER JOIN cliente ON (annunci.clienteid=cliente.id)
INNER JOIN tipo ON (annunci.tipoid=tipo.id)
INNER JOIN modello ON (annunci.modelloid=modello.id)
INNER JOIN fascia ON (annunci.fasciaid=fascia.id)
INNER JOIN condizioni ON (annunci.condizioniid=condizioni.id)
INNER JOIN users ON (annunci.user_id=users.id)
WHERE id_annunci=$id_annunci LIMIT 1");
if (!$query) {
exit('<p>Error performing query: ' . mysql_error() . '</p>');
}
while ($row = mysql_fetch_array($query)) {
$user_id = $row ['id'];
$titolo = $row ['titolo'];
$id_annunci = $row ['id_annunci'];
$ts = $row ['ts'];
$messaggio = substr($row['messaggio'], 0, 2000);
$dotazione = substr($row['dotazione'], 0, 500);
$strumentazione = substr($row['strumentazione'], 0, 500);
$telefono = substr($row['telefono'], 0, 25);
$modello = $row ['modello'];
$mq = $row ['mq'];
$locali = $row ['locali'];
$prezzo = $row ['prezzo'];
$tipologia = $row ['tipologia'];
$tipo = $row ['tipo'];
$altro = $row ['altro'];
$condizioni = $row ['condizioni'];
$name = $row ['name'];
$citta = $row ['citta'];
$cliente = $row ['cliente'];
$logo_cliente = $row ['logo_cliente'];
$regione = $row ['regione'];
$provincia = $row ['provincia'];
$comune = $row ['comune'];
$via = $row ['via'];
$cap = $row ['cap'];
$societa = $row ['societa'];
$email = $row ['email'];
$nome_file = $row ['nome_file'];
$tipo_file = $row ['tipo_file'];
$dati_file = $row ['dati_file'];
$nome_file2 = $row ['nome_file2'];
$tipo_file2 = $row ['tipo_file2'];
$dati_file2 = $row ['dati_file2'];
$nome_file3 = $row ['nome_file3'];
$tipo_file3 = $row ['tipo_file3'];
$dati_file3 = $row ['dati_file3'];
$nome_file4 = $row ['nome_file4'];
$tipo_file4 = $row ['tipo_file4'];
$dati_file4 = $row ['dati_file4'];
$nome_file5 = $row ['nome_file5'];
$tipo_file5 = $row ['tipo_file5'];
$dati_file5 = $row ['dati_file5'];
}
?>
<?php
$jokelist = mysql_query ("UPDATE annunci SET click_annuncio = click_annuncio + 1 WHERE id_annunci='$id_annunci' " ) or die (mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
lo richiamo così:
PHP:
<table width="100%">
<tr>
<td width="47%" align="left" valign="middle">Caratteristiche imbarcazione</td>
<td width="53%"><?php echo "<img src='immagini1.php?id=$user_id' name='nome_file_vero' width='150' height='40'/>" ; ?></td>
</tr>
</table><br />
</th>
<th width="32%" scope="col"> </th>
</tr>
<tr>
<td><table width="100%">
<tr>
<td> <?php echo "cod annuncio:<br />$id_annunci<br />"; ?><hr /></td>
<td><?php echo "Prezzo :<br />$prezzo<br />"; ?><hr /> </td>
<td><?php echo "Modello:<br />$titolo<br />";?> <hr /></td>
</tr>
<tr>
<td><?php echo "Tipologia venditore: <br />$cliente<br />";?><hr /></td>
<td><?php echo "Stato Imbarcazione: <br />$tipo<br />";?><hr /></td>
<td> <?php echo "Condizioni barca:<br /> $condizioni<br />"; ?><hr /></td>
</tr>
<tr>
<td><?php echo "Regione: <br />$regione<br />";?><hr /></td>
<td><?php echo "Provincia: <br />$name<br />";?><hr /></td>
<td><?php echo "Comune: <br />$citta<br />";?><hr /></td>
</tr>
<tr>
<td> <?php echo "Lunghezza:<br /> $mq<br />"; ?><hr /></td>
<td><?php echo "Bagni:<br /> $tipologia<br />"; ?><hr /></td>
<td><?php echo "Cabine:<br /> $locali<br />"; ?><hr /></td>
</tr>
</table>
<table width="100%">
<tr>
<td><?php echo "Data Inserimento: $ts<br /><br /><br />"; ?><hr />
<?php echo "Strumentazione di bordo:<br /> $strumentazione<br /><br /><br />";?><hr />
<?php echo "Dotazioni di bordo:<br /> $dotazione<br /><br /><br />"; ?><hr />
<?php echo "Descrizione:<br />$messaggio<br />";?><hr /><br />
<?php require "autopromo.php" ; ?>
</td>
</tr>
</table>
Ma il campo
PHP:
<td><?php echo "Stato Imbarcazione: <br />$tipo<br />";?><hr /></td>
