L'errore che mi da è il seguente
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in/web/htdocs/www.ciemmearredamenti.it/home/web2016/visualizza_dettagli-centrale-sotto2.php on line 21
io i dati gli inserisco così
<?
include("datastring.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>
<?
if (!isset($start) OR $start<0)
$start=0;
$step = 6;
$query = "SELECT id,categoria,modello,stile,foto1 FROM dati WHERE modello=$prodotto['modello'] ORDER BY id DESC LIMIT $start,$step";
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++; echo "</td>";}
$alt=$s/4;
$alt3=bcdiv($s,4);
$s++;
if($alt!=$alt4){echo"";}
echo "
$row[modello]
<a href='visualizza_dettagli.php?id=id'>
<img src='http://www.ciemmearredamenti.it/$row[foto1]' class='img-responsive' alt=''>
</a>
<h3> $row[modello] $row[stile] </h3>
";}
?>

Rispondi quotando