i have a table like this:
$query = "select * from pharmacy";
$result = mysql_query($query);
$num = mysql_num_rows($result);
$num1 = mysql_num_fields($result);
if($num>0)
{
echo "<table border=2>";
for($i=0;$i<$num;$i++)
{
$row=mysql_fetch_row($result);
echo "<tr>";
echo"<td><input type='Checkbox' name='p$i' value='yes' unchecked /></td>";
echo"<td>$row[0]</td>";
echo"</tr>";
}
i want to insert the checked ones in my another table in Mysql how can i insert the texts of each check boxes?
First off all you must change this HTML so that the checkbox is an array
then in the action page