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;     } 

output enter image description here

expected output enter image description here tried replace assigned_to (183,183,246) user_login name(raghu,raghu,joseph)

but getting added assigned _to row not replacing


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -