Im new. How do I get the field names to show in my php mySQL search?
<?php
$database="mydb";
mysql_connect ("localhost", "username", "password");
@mysql_select_db($database) or die( "Unable to select database");
$result = mysql_query( "SELECT Lender, `1st Loan Amount`, FirstLoanProgram, FirstLoanType, InterestRate1, LTV1, CLTV1, `2nd Loan Amount`, SecondLoanProgram, SecondLoanType, InterestRate2, LTV2, CLTV2, Amort_type, Loan_Category, Combo, Property_type, Units, Occupancy, B_Fico_1, B_Fico_2, B_Fico_3, C_Fico_1, C_Fico_2, C_Fico_3, BK, Foreclosure, 12mth_lates, 24mth_lates, Num_trades, 1st_time_homebuyer, Doctype
FROM transactions LIMIT 738, 830" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
print "There are $num_rows records.<P>";
print "<table width=200 border=1>\n";
while ($get_info = mysql_fetch_row($result)){print "<tr>\n";
foreach ($get_info as $field)
print "\t<td><font face=arial size=1/>$field</font></td>\n";
print "</tr>\n";
}
print "</table>\n";
?>

