Ecco l'errore che mi ritrovo...
codice:
Mysql dice: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1 = 0, 2 = 0, 3 = 0, 4 = 0, 5 =
Non capisco dove sia l'errore...
Codice PHP:
<?php
$host="*********";
$user="******";
$pwd="******";
$link=mysql_connect($host,$user,$pwd) or die("Non riesco a connettermi");
mysql_select_db ("Sql15965_3");
$update = "UPDATE travian SET
NVill = $_POST[NVill],
1 = $_POST[1],
2 = $_POST[2],
3 = $_POST[3],
4 = $_POST[4],
5 = $_POST[5],
6 = $_POST[6],
7 = $_POST[7],
8 = $_POST[8],
9 = $_POST[9],
10 = $_POST[10]
WHERE `ID` = '$_POST[ID]' ";
if(md5($_POST[pwd]) == $_POST[Pwd])
$result = mysql_query($update, $link) or die ("Mysql dice: " . mysql_error());
else echo"Password Errata!";
Header("Location: [url]http://www.noizout.eu/travian/index.php[/url]");
?>
Grazie anticipatamente..