09. marts 2005 - 17:02Der er
4 kommentarer og 1 løsning
Fejl ved update
Når jeg update melder den følgende fejl
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 'nyhedsmail=' <TABLE id=table1 style=\"COLOR:
En del af script $editFormAction = $HTTP_SERVER_VARS['PHP_SELF']; if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) { $editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING']; }
if ((isset($HTTP_POST_VARS["MM_update"])) && ($HTTP_POST_VARS["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE nyhedsmail_ks SET emne=%s nyhedsmail=%s WHERE svarID=%s", GetSQLValueString(str_replace('.', '', $_POST['emne']), "text"), GetSQLValueString(str_replace('.', '', $_POST['nyhedsmail']), "text"), GetSQLValueString(str_replace('.', '', $_POST['svarID']), "int"));
mysql_select_db($database_connect, $connect); $Result1 = mysql_query($updateSQL, $connect) or die(mysql_error());
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.