// Printing results in HTML
echo "<table border=1>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
my question is
how can I make this without "foreach ($line as $col_value)"
because :
let's say i have a 5 columns table in 2 rows ...
i would like to display only 2 columns, and the rest of them ... 3 more ... only have in some variable per row, so i can use it as ID-s or something ...
do i make sense?
in asp I had something like this:
a = returnedrecordset(rownumber, columnnumber)
print a

got it?
thanks!
--
cucu bau
echo "<table border=1>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
my question is
how can I make this without "foreach ($line as $col_value)"
because :
let's say i have a 5 columns table in 2 rows ...
i would like to display only 2 columns, and the rest of them ... 3 more ... only have in some variable per row, so i can use it as ID-s or something ...
do i make sense?
in asp I had something like this:
a = returnedrecordset(rownumber, columnnumber)
print a
got it?
thanks!
--
cucu bau