echo '<ul id="mycarousel" class="jcarousel-skin-tango">';
yes, if i remove this jcarousel class. its showing me result. infact i have done simple paging with my result. but the thing is i want to show all my record in the same page( i have to rather) so, i can see the on the same page.
here is my code with paging
PHP Code:
<?
$sqlpage = $op->runsql("SELECT a.username,a.avatar,r.visitor_id,r.visiting_count,TIMESTAMPDIFF(MINUTE, r.recent_visited, NOW()) AS MinsSinceLastVisit FROM recent_visitor as r ,author as a WHERE (r.visitor_id = a.id) AND r.profile_owner = '$blogdata->author' ORDER BY r.recent_visited DESC LIMIT $start, $limit_value");
if(mysql_num_rows($sqlpage) > 0){
?>
<p class="msgText">Total <strong><?=$total_records;?></strong><?if($total_records >1){
?> Recent Visitor's<?}else{?> Recent Visitor<?}}?></p>
<?
if(mysql_num_rows($sqlpage) > 0){
while($row1 = $op->select($sqlpage)){
$minutes_dif = $row1['MinsSinceLastVisit'];
$imagearr = explode(",",$row1['avatar']);
$imagearr[0]= preg_replace("/\/avatar\//","/small/", $imagearr[0]);
?>
<a href='/profile/<?=$blog->spacereplace($row1['username']);?>/' title="<?=$row1['username']?>"><img src="<?=$retpath;?>/<?=$imagearr[0];?>" width="40" height="40" alt="<?=$row1['username']?>"/></a><?
$minutes_dif = $row1['MinsSinceLastVisit'];
$Ymin = 60 * 24 * 365;
$Mmin = 60 * 24 * 30;
$Wmin = 60 * 24 * 7;
$Dmin = 60 * 24;
$Hmin = 60;
$Y = (int)($minutes_dif / $Ymin);
$minutes_dif = $minutes_dif % $Ymin;
$MON = (int)($minutes_dif / $Mmin);
$minutes_dif = $minutes_dif % $Mmin;
$W = (int)($minutes_dif / $Wmin);
$minutes_dif = $minutes_dif % $Wmin;
$D = (int)($minutes_dif / $Dmin);
$minutes_dif = $minutes_dif % $Dmin;
$H = (int)($minutes_dif / $Hmin);
$minutes_dif = $minutes_dif % $Hmin;
if($Y > 0 ){
echo "$Y year(s) ";
}else if($MON > 0){
echo "$MON month(s) ";
}
else if($W > 0){
echo "$W week(s) ";
}
else if($D > 0){
echo "$D day(s) ";
}
else if($H > 0){
echo "$H hour(s) ";
}
else if($minutes_dif > 0) echo "$minutes_dif minute(s) ";
echo "ago"; ?>(<?=$row1['visiting_count']?>visits)<? echo"\t";
$i++;
}
}
/*------Paging starts-----*/
$redirect = "/profile/$usrname";
if($total_records > $limit_value){
echo "<div class='shoutboxPage'>";
msg_paging($total_records, $total_rows, $limit_value, $start, $page, $total_pages, $redirect);
echo "</div>";
/*-------Paging ends------*/
//}
}
mysql_free_result($result);
mysql_free_result($sqlpage);
}}
can i do this with slider. dont know.
please help me...
Bookmarks