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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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