I make a query that give me zero rows (ok: no row meets my select).
Is there a way to fetch only the attribute names, also if there is not any row with data?
$row_number = 0;
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
// Fetch just two field names, only the first row fetched
if ($row_number==0) {
$desc = $row["DESCRIPTION"];
$unit = $row["UNIT"];
}
// ....
}
Thank you in advance