ecco il codice
Codice PHP:
<table align="center" cellspacing="0" cellpadding="0" width="90%" height="90%">
<?php
$name = $_POST['name'];
$city = $_POST['city'];
$email = $_POST['email'];
$com= $_POST['com'];
if ($com==NULL)
{
echo"
<tr>
<td><a href=\"index.php?s=61\">Non Hai Inserito Un Commento!</a></td>
</tr>
";
}
else
{
$db=mysql_connect($db_host,$db_user,$db_password) or die("Impossiblie Connettersi: " . mysql_error());
mysql_select_db($db_name);
INSERT INTO GUESTBOOK (ID,Data,Nome,Citta,Email,Commento,IP) VALUE ('',UNIX_TIMESTAMP(),'$name','$city','$email','$com','$_SERVER[\"REMOTE_ADDR\"]') or die("Query Errata: " . mysql_error());
mysql_close();
echo"
<tr><td><a href=\"index.php?s=61\">Grazie!</a></td></tr>
<tr><td><a href=\"index.php?s=61\">Il Tuo Commento è Stato Inserito</a></td></tr>
";
}
?>
</table>
ma mi da questo errore:
Parse error: parse error, unexpected T_STRING in /home/eccc/GBStore.php on line 28
...le righe totali sono 26...
ID è impostato come autoincrement quindi credo che '' vadano bene.
come risolvo???