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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -