I want to make an update function to update a profile in my DB. Now I have all 20 fields and wants to make a feature where when I can say what data I send it.
Example:
function send_data($a, $b, $c, $d, $e, $id){
$sql = "UPDATE table SET a=$a, b=$b, c=$c, d=$d, e=$e WHERE id = $id";
mysql_query($sql);
}
Now I want to call this function and for example only give A and D
Can this be? if so how?