PHP Multiple Update function not updating and gets the 1st row blank

后端 未结 1 944
傲寒
傲寒 2020-12-22 05:00

First of all, I use PHP Dreamweaver to make a program with phpMyAdmin Database. This program gets my records in a 1st row blank when I submit the button, and the remaining r

相关标签:
1条回答
  • 2020-12-22 05:36

    You need to put:

    $name = array_map('mysql_real_escape_string', $_POST['name']);
    $lastname = array_map('mysql_real_escape_string', $_POST['lastname']);
    $email = array_map('mysql_real_escape_string', $_POST['email']);
    $id = array_map('mysql_real_escape_string', $_POST['id']);
    

    before your for loop. You're using these variables but you never filled them in from the form inputs.

    0 讨论(0)
提交回复
热议问题