Svetlana
Новичок
Использование CHECKBOX с данными , полученными из SQL запроса
Есть код ,выводящий таблицу:
<table>
<div align="center">
<center><table border=1 cellpadding=0 cellspacing=0 width="100%">
<tr><th>Номер письма</th><th>От кого</th><th>Дата</th><th>Текст письма</th><th>Статус</th></tr> <tr><td>
<?php
require_once('connect.php');
$sql4="SELECT user.arendator, post.arendator, post.createDate, post.soursetext, post.postid, post.answertext,user.arendator_fullname,post.status FROM user,post WHERE user.arendator=post.arendator and post.answertext='' ORDER BY post.postid";
$rest5=mysql_query($sql4);
while ($line3=mysql_fetch_row($rest5))
{
echo "<tr> <td><small>".$line3[4]. "</small></td>","<td><small> ".$line3[6]. "</small></td>","<td><small> ".$line3[2]. "</small></td>","<td><small> ".$line3[3]. "</small></td>","<td><small> ".$line3[7]. "</small></td>";
}
?>
</center>
</table>
Как мне в каждую выведенную строку поставить checkbox и дальше правильно его обработать? Подскажите, пожалуйста.
Есть код ,выводящий таблицу:
<table>
<div align="center">
<center><table border=1 cellpadding=0 cellspacing=0 width="100%">
<tr><th>Номер письма</th><th>От кого</th><th>Дата</th><th>Текст письма</th><th>Статус</th></tr> <tr><td>
<?php
require_once('connect.php');
$sql4="SELECT user.arendator, post.arendator, post.createDate, post.soursetext, post.postid, post.answertext,user.arendator_fullname,post.status FROM user,post WHERE user.arendator=post.arendator and post.answertext='' ORDER BY post.postid";
$rest5=mysql_query($sql4);
while ($line3=mysql_fetch_row($rest5))
{
echo "<tr> <td><small>".$line3[4]. "</small></td>","<td><small> ".$line3[6]. "</small></td>","<td><small> ".$line3[2]. "</small></td>","<td><small> ".$line3[3]. "</small></td>","<td><small> ".$line3[7]. "</small></td>";
}
?>
</center>
</table>
Как мне в каждую выведенную строку поставить checkbox и дальше правильно его обработать? Подскажите, пожалуйста.