gracias por responder
si los datos estan enviados atraves de un formulario
aqui tienes el formulario
Código PHP:
Ver original<form action="confer.php" method="post" name="insert_form_price">
<table width="900px" cellspacing="1" cellpadding="1">
<tr>
<td width='25' colspan='1'>
<input type='button' class='button' value=' < ' onClick='<?php echo "goLastMonth($month,$year,\"$form\",\"$field\")"; ?>'>
</td>
<td width='125' align="center" colspan='5'>
<span class='title'><input type="text" name="month" value="<?php echo $month; ?>" /><input type="text" name="year[]" value="<?php echo $year; ?>" /></span><br>
</td>
<td width='25' colspan='1' align='right'>
<input type='button' class='button' value=' > ' onClick='<?php echo "goNextMonth($month,$year,\"$form\",\"$field\")"; ?>'>
</td>
</tr>
<?php
for($i = 1; $i < $days; $i++)
{
if($i == 1)
{
echo '<td>Fecha </td>';
//$firstDay = date("w", $timeStamp);
for($j = 1; $j < $days+1; $j++)
{
echo "<td class='tr' bgcolor='#ffffff' align='center' width='25'><input type='text' size='2' autocomplete='on' name='date' value='".$j."' /></td>";
}
}
// Workout when the first day of the month is
}
echo '</tr>';
$query = "SELECT * FROM tipo_hab ORDER BY id_hab LIMIT 0, 5";
//echo '<tr>';
{
echo '<tr>';
$i = 0;
echo '<td><input type="text" name="id_hab" value="'.$row['id_hab'].'" />';
echo '</td>';
for($j = 0; $j < $days; $j++)
{
echo '<td width="25"><input type="text" size="2" name="precio" /></td>';
}
echo '</tr>';
}
$date1 = date('$year-$month-$j'); ?>
<tr>
<td colspan="<?php $i - 2; ?>"><input type="reset" value="Borrar" /></td>
<td><input type="submit" value="Guardar" /></td>
</tr>
</table>
</form>