All pastes #551508 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-08 20:41 UTC
rendered paste body
<?php include "config.php"; links(); 

$fecha=$_POST['fecha'];

 $query='select * from horas where ultimo<'.$fecha.';';
 $IdConsulta = mysql_query ($query);
 $Cant_filas=mysql_num_rows($IdConsulta);


for($i=0;$i<$Cant_filas;$i++)
{

	$fila=mysql_fetch_array($IdConsulta);

	for($j=1;$j<25;$j++)
	{
	$suma[$j]=$suma[$j]+$fila[$j];
	}


}
print $suma[1];
print $suma[2];
?>