Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$result = mysql_query("UPDATE inventory1.asset_details SET status='". $_POST['status']."', To='" . $_POST['location_name']."', notes='". $_POST['notes']."' WHERE asset_tag=" . $_POST['asset_tag']);
这意味着它'asset_tag'不会作为您的$_POST[]数组中的键出现。您应该检查您的 HTTP 请求以确保该值被传入。
'asset_tag'
$_POST[]