]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_user.php
Deleting of entries added
[mailer.git] / inc / modules / admin / what-edit_user.php
index 657f1273ba686de79e35152305034497e23a86f4..82e38399bb6e2c37a2a0f30c84bbb87888d4113f 100644 (file)
@@ -46,7 +46,7 @@ OPEN_TABLE("100%", "admin_content admin_content_align", "");
 $result_main = false;
 if (isset($_GET['u_id'])) {
        //                                    0      1        2         3      4     5      6       7         8          9           10         11
-       $result_main = SQL_QUERY_ESC("SELECT sex, surname, family, street_nr, zip, city, country, email, birth_day, birth_month, birth_year, max_mails FROM "._MYSQL_PREFIX."_user_data WHERE userid=%d LIMIT 1",
+       $result_main = SQL_QUERY_ESC("SELECT sex, surname, family, street_nr, zip, city, country, email, birth_day, birth_month, birth_year, max_mails FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
         array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
 }
 
@@ -82,11 +82,11 @@ surname='%s',
 family='%s',
 street_nr='%s',
 country='%s',
-zip=%d,
+zip=%s,
 city='%s',
 email='%s'
 ".$ADD."
-WHERE userid=%d LIMIT 1",
+WHERE userid=%s LIMIT 1",
  array(
        substr($_POST['salut'], 0, 1),
        $_POST['surname'],
@@ -148,7 +148,7 @@ WHERE userid=%d LIMIT 1",
  else
 {
        // Account does not exists!
-       OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+       OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
 }
 CLOSE_TABLE();
 //