hi .... how are u ?  i have 2 problems... i need your help ...
1 )
i have table ..... i bring it from mysql to my php page
i want to print in a printer only the table i dont want the html page ...
how could i do that ??? 
and if it is a long table how this will work ?? multiple pages ?? 
can i add a text in the head ?? i mean
text here .....
table here 
(i mean i dont want the html page ... i want to write some thing about the table and then the table )

2)
i want to make small attendance page .... 
i have a form contain the student names .. ( bring them from a table (student) ) and echo them with a checkbox  button as you see ... 
..........................................................................
$sqll="select level1 from student";
$resultt=mysql_query($sqll)
  OR die("Errrrrr ");


$fields_num = mysql_num_fields($resultt);
echo "<center>" ;
echo "<table border='1'><tr>";
for($i=0; $i<$fields_num; $i++)
{
    $field = mysql_fetch_field($resultt);
    echo "<td>{$field->name}</td>";
}
echo "<td>addance</td>";
echo "</tr>\n";


while($row = mysql_fetch_row($resultt))
{
    echo "<tr>";
 foreach($row as $cell)
      {  echo "<td>$cell</td>";
echo "<td>
 <input type="checkbox"  name="home"  />
</td>";}
}
echo "</tr>";
}
echo "</table>";
......................................................................
how can i add the values to the attendance table ??????? 
i try to make the type array with this tag
<input type="checkbox"  name="home[]"  />
and the php will be ...
...................................................
for($i=0;$i < count($_POST['home']); $i++)
{

 $values[$i] = '("' . $_POST['home'][$i] . '")';


 $sql="update attendance set  week1=$values[$i] ";
$result=mysql_query($sql)
  or die (mysql_error()) ;

}
........................................................
but all rows in week1 will take only the last value of the checked box ... 
how will i solve this problem ???

thanks for any one help me with anything :)