
15/03/2009, 09:39
|
| | Fecha de Ingreso: octubre-2008
Mensajes: 30
Antigüedad: 16 años, 4 meses Puntos: 0 | |
Respuesta: Division by zero ??? A lo mejor algo así:
Código:
$number = mysql_num_rows ($res);
if ($number != 0) {
$virgi = $row['valorcito'] / $row['cod'];
$gunter = $row['total'] / $row ['cod'];
}
else {
$virgi = 0;
$gunter = 0;
}
|