Backend Development

Pagination

Submitted by linkzy, , Thread ID: 22382

Thread Closed
14-07-2016, 08:13 PM
This post was last modified: 14-07-2016, 08:14 PM by linkzy
#1
How do i paginate this thing.
PHP Code:
<html>
<
body style="background: #d2d2d2;">
<
link rel="stylesheet" type="text/css" href="style.css">


<
center><h1>User List</h1></center>
<
table>
<
tr>
<
th>Name</th>
<
th>Cash</th>
<
th>Score</th>

<?
php
include('config.php');

$query mysql_query('select Name, Cash, Score from users');

while(
$row mysql_fetch_array($query))
{
?>
<tr>
        <td class="left"><?php echo $row['Name']; ?></td>
        <td class="left"><?php echo $row['Cash']; ?></td>
        <td class="left"><?php echo $row['Score']; ?></td>
</tr>
<?php
}
?>

</table>
</body>
</html> 

If there is any mistake in the code, Please tell me how to correct it.
Thank You! Smile

Dont kill me plz plebzz
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 1 Guest(s)