I just want to know if this is the correct syntax for updating data in the database.
<?php
$user_id = $_GET['user_Id'];
$qry = mysql_query("SELECT win_id,win_net_drives,win_asset_no,win_new_pc,win_requirements,win_uid FROM windows_application WHERE win_uid = '".$user_id."'");
$db = mysql_fetch_array($qry);
if($_GET['process'] == 1){
$drives = $_POST['network_drive'];
$asset = $_POST['win_asset_no'];
$newpc = $_POST['new_pc'];
$winreq = $_POST['win_requirements'];
$qry = mysql_query("UPDATE windows_application SET win_net_drives= '".$drives."'");
$qry = mysql_query("UPDATE windows_application SET win_asset_no= '".$asset."'");
$qry = mysql_query("UPDATE windows_application SET new_pc= '".$newpc."'");
$qry = mysql_query("UPDATE windows_application SET win_requirements= '".$winreq."'");
}
?>