Jump to content

reply system, to split it to pages?


AviNahum

Recommended Posts

hey... (sorry for poor English, i from Israel)

so made a reply system for each page in web.

but i got a problem...

there is more then 300 replies in database...

it's shows the replies with while loop...

and it shows all replies in 1 page...

 

i want it makes new page after 15 replies...

i mean it shows oy 15 replies for each page.

 

how i can do it?

thanks!

 

i forgot... that the script that show the replies:

$select = "SELECT * FROM web_downloads_replies WHERE reply_in='$download_id'";
$result = mysql_query($select , $DB); 

while ($row = mysql_fetch_array($result)) {

$download_reply = array(	'id'		=> $row['id'],
        			'date'		=> $row['date'],
        			'name'		=> $row['name'],
        			'reply_in'		=> $row['reply_in'],
        			'content' 		=> $row['content']
        		);

echo "<div><div align='right'>מאת: <font color='blue'>", $download_reply['name'] ,"</font></div><div align='left'><font id='download_date'>(", $download_reply['date'] ,")</font></div></div>
<div width='1%'><font id='reply'>", $download_reply['content'] ,"</font></div>";
echo "<hr><br>";

}

Link to comment
https://forums.phpfreaks.com/topic/136380-reply-system-to-split-it-to-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.