Jump to content

How do I have this make seperate pages?


Arez

Recommended Posts

The code is

[code]This writes actions into the logs page

global $bordercolor1, $tablebg1;
echo "
<table align='center' border='1' bordercolor='$bordercolor1' cellspacing='0' cellpadding='0' width='550'>
<tr><td class='main' background='$tablebg1'><center><b>View Logs</b></center></td></tr>
<tr>
<td class='small'><br>
<blockquote>
";

$query = "SELECT * FROM log ORDER BY id DESC";
$result = mysql_query($query)
or die("error");
while($row = mysql_fetch_array($result))
{
extract($row);
echo "
<b>Date:</b> $date1<br>
<b>Action:</b> $action<br>
<b>Reason:</b> $reason<br>
<hr size='1' width='500' color='$bordercolor1'>
<br>
";
}

echo "</blockquote>
</td></tr>
</table>
";
[/code]

How would I get that to make page 1, 2, 3, etc? it's putting it all on one page and it gets too big.
Link to comment
https://forums.phpfreaks.com/topic/11092-how-do-i-have-this-make-seperate-pages/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.