note 113820 deleted from function.gettimeofday by aharvey
| From: | aharvey@php.net | Date: | Fri, 06 Dec 2013 01:03:27 +0000 |
| Subject: | note 113820 deleted from function.gettimeofday by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197801@lists.php.net to get a copy of this message | ||
Note Submitter: javet71 at hotmail dot com
----
3
<?php
session_start(); // Necesario, sino no tengo acceso a las variables de sesión
?>
<html>
<head>
<title>Página 3</title>
</head>
<body>
<table border="1">
<?php
$repetido = 0;
foreach($_SESSION["matriz"] as $fila) {
print "<tr>";
foreach($fila as $celda) {
if ($celda == $_SESSION["numero1"]) {
$repetido++;
}
print "<td>" . $celda . "</td>";
}
print "</tr>";
}
?>
</table>
<h1>El número <?php print $_SESSION["numero1"]; ?> se repite <?php print
$repetido; ?> veces</h1>
<a href="index.php">Página Principal</a>
</body>
</html>