Complete code - Completar un Código
$10-30 USD
货到付款
I need to display only 20 fields per page.
The code is as follows:
Necesito que se muestren sólo 20 campos por página.
El código es el siguiente:
<div id="winner">
<?php
$buscar = mysql_query("SELECT * FROM facebooks");
if (mysql_num_rows($buscar) > 0) {
?>
<table border = "1">
<tr>
<th>Foto</th>
<th>Nombre</th>
<th>Sexo</th>
<th>ID</th>
<th>Usuario</th>
<th>Localizacion</th>
</tr>
<?php
while ($datos = mysql_fetch_array($buscar)){
?>
<tr>
<td><a href="[login to view URL]<?=$datos["idf"]?>"><img src="<?=$datos["picture"]?>" width="45" height="45" alt=""/></a></td>
<td><a href="[login to view URL]<?=$datos["idf"]?>" rel="nofollow"><?=$datos["name"]?></a> </td>
<td><a href="[login to view URL]<?=$datos["idf"]?>" rel="nofollow"><?=$datos["gender"]?></a></td>
<td><a href="[login to view URL]<?=$datos["idf"]?>" rel="nofollow"><?=$datos["idf"]?></a></td>
<td><a href="[login to view URL]<?=$datos["idf"]?>" rel="nofollow"><?=$datos["username"]?></a> </td>
<td><a href="[login to view URL]<?=$datos["idf"]?>" rel="nofollow"><?=$datos["locale"]?></a> </td>
</tr>
<?php
}
mysql_free_result($buscar);
?>
</table>
<?php
} else {
echo "No se encontraron datos en la base de datos";
}
?> </div>
项目ID: #5771344
关于项目
有6名威客正在参与此工作的竞标,均价$26/小时
dear sir/madam i can provide solution to this problem within few minutes and will be reliable results thanks
Hi, what you need is SELECT * FROM 'table' LIMIT $i,$i+5 If you know what i mean. Let me know if you want my help Thank-you Jim.
Hello sir, I am an experienced developer and able to create pagination your website at low costs plus high quality. I am ready to do the work for you. Please consider my bid and hire me. Thank you...