Hi,
I need, store values of array into variable (not echo), i get all the values with echo succefuly but when i pass the variable or update a DB table, either it display or update the field with only the last value
Example :
$clients = array(“x”,“xx”,“xxx”);
$arrlength = count($clients);
for ($x = 0; $x < $arrlength; $x++) {
if ($x == 2) {
$OR= “”;
}
else {
$OR= " OR ";
}
$all_text = "CLIENT = “. $clients[$x] .” “. $text .” ";
echo $all_text;
sc_exec_sql(" UPDATE etat_rh_users SET condition= '[all_text]' where login= 'MKHIAR5L' ");
}