simon551
IS-IT--Management
- May 4, 2005
- 249
hi. I need to format my page to show 2 tables next to each other for printing. I don't think I can use a float because of the printing problem in firefox. My data comes from a database and I'm using php. This is my code which works to generate 2 html tables from the same source (mysql) table.
what I want to do is show a list like 1.2.3.4.5.6 as:
1 4
2 5
3 6
not sure if the php code here will help to demonstrate my problem but I'm hoping it does:
what I want to do is show a list like 1.2.3.4.5.6 as:
1 4
2 5
3 6
not sure if the php code here will help to demonstrate my problem but I'm hoping it does:
Code:
echo
'<table>';
foreach ($array as $key=> $check) {
if ($key<($midpoint)){
echo
'<tr>'
.$array[$key].
'</tr>';
}
}
echo
'</table>';
//second table I would like to view next to the first
echo
'<table>';
foreach ($array as $key=> $check) {
if ($key>($midpoint)){
echo
'<tr>'
.$array[$key].
'</tr>';
}
}
echo
'</table>';