Mam problem otóż pobrałem z internetu skrypt jtable i chciałem go trochę edytować i po zmianie
tego
$result = mysql_query("INSERT INTO people(Name, Age, RecordDate) VALUES('" . $_POST["Name"] . "', " . $_POST["Age"] . ",now());");
i tego
$result = mysql_query("UPDATE people SET Name = '" . $_POST["Name"] . "', Age = " . $_POST["Age"] . " WHERE PersonId = " . $_POST["PersonId"] . ";");
na to
$result = mysql_query("INSERT INTO people(Name, Age, Miasto, RecordDate) VALUES('" . $_POST["Name"] . "', " . $_POST["Age"] . " , " . $-POST["Miasto"] . ",now());"); $result = mysql_query("UPDATE people SET Name = '" . $_POST["Name"] . "', Age = " . $_POST["Age"] . ", Miasto = " . $_POST["Miasto"] . ", WHERE PersonId = " . $_POST["PersonId"] . ";");
Wyświetla mi się to
An error occured while communicating to the server
W bazie danych dodałem kolumne