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

谁说胖子不能爱 提交于 2019-11-29 17:49:58

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!