I want to have the fields names separated with ',' . This query
show COLUMNS FROM ma_table;
Returns raw unseparated values
$sql = "show COLUMNS from ma_table ";
$req = mysql_query($sql) or die('Erreur<br>'.$sql.'<br>'.mysql_error());
while ($rslt = mysql_fetch_assoc($req)) {
$fields=$rslt['Field'];
}
mysql_close();
'.$sql.'
'.mysql_error()); while ($rslt = mysql_fetch_assoc($req)) { $fields=$rslt['Field']; } mysql_close();` – Hakim Amzaourou Jan 05 '17 at 12:38