actually, doing that doesn't get me what i want... i am doing something wrong - i only get one row of the db back, and it is formatted strangely:
A <- a 'value'
buyer_cd <- a 'column name'
A <- 'value' repeated
1
FOO, RAQUEL
buyer_name
FOO, RAQUEL
2
Raquel@foo.gov
buyer_email
Raquel@foo.gov
3
694-1111
buyer_phone
694-1111
4
raquel
user_id
raquel
5
testing
password
testing
here's the code i used for testing, my $db_query was "SELECT * from codes", which has many rows:
$db_query_result = mysql_query($db_query);
$db_query_result_row = mysql_fetch_array($db_query_result);
foreach($db_query_result_row as $key => $value) {
echo "$key<br>";
echo "$value<br>";
}
I'd like to have the column names shown nicely, then all values below them, in a simple table. How do I correctly present the information?