is there any way to get all field names in a mysql resultset when table is empty and inner join was used?
ex:
sql = 'select * from mytable inner join othertable on leftval=rightval';
$result = mysql_query($sql);
$i = mysql_num_fields() // returns false when no results
// describe table doesn't work for inner joins