Hi…
I work this to update a 3nd col named 'meres' with Deduction date_pire and date_epistrvfh, but is not work, have you any idea…
function update_client($data)
{
$selected_ids = $data["auto_id"];
$d = $data["params"];
$d["meres"] = $meres;
$meres='SELECT (TO_DAYS(date_pire)-TO_DAYS(date_epistrvfh) )as meres FROM person_ka_aposp';
mysql_query("UPDATE person_ka_aposp SET meres=$meres WHERE auto_id IN ($selected_ids)");
}
1 Answers
Your Answer