Complete code - Completar un Código

已完成 已发布的 Apr 7, 2014 货到付款
已完成 货到付款

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>

MySQL PHP

项目ID: #5771344

关于项目

6个方案 远程项目 活跃的Apr 7, 2014

授予:

bbee2222

Hello Sir, I am a professional Web developer. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. Kindly award me.. I dont want advance payment. You will 更多

$20 USD 在1天内
(19条评论)
3.3

有6名威客正在参与此工作的竞标,均价$26/小时

cijagani

I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, Web Designing and framework like CodeIgniter. my aim to deliver quality products to our customers within specified deadline. i strongly believe in 更多

$28USD 在1天里
(129条评论)
6.8
jamal8t2

dear sir/madam i can provide solution to this problem within few minutes and will be reliable results thanks

$20USD 在1天里
(5条评论)
3.1
xcc

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.

$25USD 在1天里
(2条评论)
1.0
napsterinfotech

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...

$30USD 在1天里
(1条评论)
1.0