php, mysql, ajax, jquery странициране

antique

Registered
някой може ли да ми сложи на това чуда странициране без презареждане.







Код:
<?php
$sql = "SELECT * FROM `shoutbox`  WHERE `article_id` = '$article_id' ORDER BY `ID` DESC LIMIT 10"; 
$result = mysql_query($sql);  
while($row = mysql_fetch_array($result)) {
	$date = strtotime($row['date']);
	$date2 = $row['date'];
	$dayMonth = date('d M', $date);
	$year = date('y', $date);
	
	
	
	$com_id = $row['id'];
	$author_id = $row['author_id'];

$query5 = mysql_query("SELECT * FROM `users` WHERE `id`='$author_id'") ;
while($raw333 = mysql_fetch_array($query5)){
$author_username = $raw333['username']; 
$author_img = $raw333['image']; 
}
	
$message = nl2br($row['content']);

?>
	

	<div class="box">
	<table style="padding: 0px 0 0 0;">
	<tr>
	<td rowspan="2" valign="top">
	<?php
	echo "
	<a href='http://svali-me.com/user/$author_username'><img src=\"http://svali-me.com/beta2/thumb?file=uploads/$author_img&sizex=75px&sizey=75px\" alt=\"Снимка\"></a>
	";
	?>
	
	</td>
	</tr>
	<tr>
	<td valign="top">
	
			<div class="date">
			<span class="time">
			<?php 
			if ($user == $article_username){
			echo "
			<div style='float:left; width: 230px; padding: 5px 0 0 0;'><font size='2px'><b><a href='http://svali-me.com/user/$author_username'>$author_username</a></b></font></div>  
			<div style='float:left;'>$date2 
			<a href=\"#\" id=\"$com_id\" class=\"delete\">x</a>
			</div>
			<div style='clear:both;'></div>
			";
			}else {
			echo "
			<div style='float:left; width: 250px; padding: 5px 0 0 0;'><font size='2px'><b><a href='http://svali-me.com/user/$author_username'>$author_username</a></b></font></div>  
			<div style='float:left;'>$date2</div>
			<div style='clear:both;'></div>
			";
			}
			?></span>
			</div>
			<div class="date2">
			<span class="content"><?php echo stripslashes($message);?> </span>

			</div>
	</td>

	</tr>
	</table>
	
				
			<div class="clear"></div>
	</div>
		
<?php
}
?>
 

Back
Горе