Hi,
I've my SELECT function which select all the columns of my table :
$ref = "SELECT *
FROM reference
WHERE produit_id='$produit_id'
I then call a php function in order to get all the name of the columns :
$row = mysql_fetch_array($result_
ref, MYSQL_ASSOC);
foreach ($row as $fieldname => $fieldvalue){
if ($fieldvalue != '' && $fieldvalue != $produit_id){
echo $fieldname";
}
}
The thing is that I don't want to get all the names of the colums of my table... I don't also want to call all the columns in my SELECT query (SELECT col1, col2...). So is there a trick with php to do that ???
Thanks in advance
Start Free Trial