Hello peeps!
I really need a pagination for this code:
<body>
<div class="myFiles-content">
<div id="myFiles-upload">
<table>
<tr>
<td class="login-form">
<form action="index.php?page=user_upload2" method="post" enctype="multipart/form-data">
<input class="button1" type="file" name="uploaded_file"><br>
<input class="button1" type="text" name="description" maxlength="60" value="Description" onClick="this.value='';">
<input class="button1" type="submit" value="Upload">
</form>
</td>
</tr>
</table>
</div>
</div><br>
<table cellpadding="0" cellspacing="0" border="0">
<tr class="myFiles-thtable">
<th class="myFiles-thtable-red" width="200"><p><font color="black">File</font></p></th>
<th class="myFiles-thtable-red" width="200"><p><font color="black">Description</font></p></th>
<th class="myFiles-thtable-red" width="200"><p><font color="black">Link</font></p></th>
<th class="myFiles-thtable-red" width="150"><p><font color="black">Date</font></p></th>
<th class="myFiles-thtable-red" width="50"><p><font color="black">#</font></p></th>
</tr>
<?php
$id = $_SESSION['loginid']; // login session.
$sql = "Select * from userfile2 where userid='$id' ORDER BY created desc;";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result)) {
?>
<?php
$id = $_SESSION['loginid'];
?>
<tr>
<td width="200" class="files2-borderbottom"><p><font color="#000099"><a href="u/<?php echo $id ?>/<?php echo $row['name']; ?>"><?php echo $row['name']; ?></a></font></p>
</td>
<td width="200" class="files2-borderbottom" align="center"><p><?php echo $row['description']; ?></p></td>
<td width="200" class="files2-borderbottom"><p><input type="text" value="www.xxxx.com/u/<?php echo $id ?>/<?php echo $row['name'];?>" class="button1"></p></td>
<td width="150" class="files2-borderbottom" align="right"><p><?php echo $row['created']; ?></p></td>
<?php $id = $row['id'];
?>
<td width="50" class="files2-borderbottom"><a href="edit_files.php?deleteid=<? echo base64_encode($id);?>"><small> (delete)</small></a><a href="update.php?id=<? echo $row['id']; ?>"><small></small></a></td>
</tr>
<?php
}
?>
</Table>
</body>
</html>
Its a list generated from mysql and i've tried to understand pagination for like months now. Cant do it. Its the last <tr> tag that echoes out he data.
I do not have money for this but i could offer you an FTP account with unlimited storage/bandwith pointed at your own ISL secured folder and also a sub domain if you'd want that.
I really hope someone can put together a pagination for this. If you do just PM me and the FTP account is yours! Unlimited space.
*crossing fingers*
Regards,
Sorcher