I have a query like this:
$my_query = "select * from my_table";
$my_result = mysql_query($my_query);
and I get the field names from this query:
$my_field_name[$j] = mysql_field_name($my_result, $j )
or die ("could not fetch field name ".mysql_error());
with $j looping.
Now I want to fetch from a second table translations for the field names with an
SQL query like this:
my_header = mysql_query("select usable from header
where original = '$my_field_name[$j]'");
The last query isn't returning the content from field usable, but
" Resource id #5"
Any helpful hint?