How to get updated a single column by giving the input.Here is my code.
$sql="UPDATE isourcetest SET hostname='".$_POST['fname']."',
IP='".$_POST['Iname']."', location='".$_POST['Lname']."',
network='".$_POST['nname']."', OSversion='".$_POST['oname']."',
RAM='".$_POST['rname']."',CPUcore='".$_POST['cname']."',
CPUspeed='".$_POST['cpname']."',
Hardwaremodel='".$_POST['hname']."'
WHERE hostname='".$_POST['fname']."'";
But here if i try to update a column the entire row will be updated. Please suggest a solution.I am new in sql.