我想更新所有列值,您可以从代码中看到。但只有前三列会更新,最后两个值会更新。
没有更新。
请帮助解决以下问题。
if (isset($_POST["submit"]) && $_POST["submit"] !="")
{
$usersCount = count($_POST["F_name"]);
echo "$userCount";
for ($i = 0; $i < $usersCount; $i++)
{
mysql_query("UPDATE contactss set F_name='" .
$_POST["F_name"][$i] . "', L_name='" . $_POST["L_name"][$i] . "', mob_number='" . $_POST["mob_number"][$i] . "', Home_number='" . $_POST["Home_number"][$i] . "', Office_number='" . $_POST["Office_number"][$i] . "', Fax_number='" . $_POST["Fax_number"][$i] . "', email='" . $_POST["email"][$i] . "', Address='" . $_POST["Address"][$i] . "' WHERE C_id='" . $_POST["C_id"][$i] . "'");
}
header("Location:list_user.php");
}