php - Exporting data is not in proper format -
i exporting data database.
like joining 3 tables.
i want replace column assigned_to data (183) user_login( raghu)
but if below code getting added instead of replaced
$col_final= column names
$row[$j]= data
if($col_final[$j] == "assigned_to") { $result3 = $wpdb->get_results("select user_login wp3_users id=".$row[$j].";"); foreach ($result3 $res3){ $columnlist3 = $res3->user_login; } $schema_insert .= $columnlist3.$sep; }
expected output tried replace assigned_to (183,183,246) user_login name(raghu,raghu,joseph)
but getting added assigned _to row not replacing
Comments
Post a Comment