buenas este es el codigo que muestra todo los cliente con fecha de caducidad
Código PHP:
Ver original<?php require_once('../../Connections/agregarequipos.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ?
intval($theValue) : "NULL"; break;
case "double":
$theValue = ($theValue != "") ?
doubleval($theValue) : "NULL"; break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$maxRows_Recordset1 = 1000;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
$query_Recordset1 = "SELECT * FROM clientes WHERE TIMESTAMPDIFF(DAY, fecha_final , CURDATE()) > 1";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
if (isset($_GET['totalRows_Recordset1'])) { $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1; ?>
<table class="table table-striped table-bordered table-hover" >
<thead>
<tr bgcolor="#999999">
<td>Id</td>
<td>NOMBRE</td>
<td>CELL</td>
<td>IP</td>
<td>CODIGO</td>
<td>FECHA FINAL</td>
</tr>
<?php do { ?>
<tr>
<td><a href="http://www.forosdelweb.com/f18/contenido/buscar_cl.php?id=<?php echo $row_Recordset1['id']; ?>"> <?php echo $row_Recordset1['id']; ?> </a></td>
<td><?php echo $row_Recordset1['nombres']; ?>
<?php echo $row_Recordset1['apellido']; ?> </td>
<td><?php echo $row_Recordset1['cell']; ?> </td>
<td><?php echo $row_Recordset1['ip']; ?> </td>
<td><?php echo $row_Recordset1['codigo']; ?> </td>
<td><?php echo $row_Recordset1['fecha_final']; ?> </td>
</tr>
</tbody>
</table> <br />
<table width="150" border="0">
<tr>
</table>
</body>
</html>
<?php
?> </div>