I am trying to create a virtual pagination for a blog site. The virtual pagination shows up in every tab and doesn't work ell. How do I make virtual pagination for each tabs?
Here is the code
Code Copy
//just for database connection
require_once('./includes/base.php');Python Copy
if ($_GET['logout' ] == 1 ){
@$_SESSION = array();
@session_unregister($_SESSION['userID' ] );
@session_unregister($_SESSION['userName' ] );
@session_unregister($_SESSION['userUser' ] );
@session_unregister($_SESSION['userPass' ] );
@session_destroy();
}
// Display header
require("./templates/$template/header.php" );Code Copy
function isClear()
{
document.myForm[0].value='';
return true;
}
';
}
?>
Hello world sub heading is blah, blah, blah!Code Copy
Blog
Links
ImagesPowerShell Copy
<?php
$sql = mysql_query("SELECT users.userUser, posts.postID, posts.postPost, posts.postTime, posts.postComments, userAvatar FROM users, posts WHERE users.userID = posts.postUserID ORDER BY posts.postTime DESC " );
while ($row = mysql_fetch_array($sql )){
$abcd = $row ['userName' ];
$abcd = str_replace (" " , "-" , $abcd );
$time = reltime($row ['postTime' ]);Bash Copy
echo '
' .$row ['postPost' ].'
Posted by: ' .$row ['userUser' ].', Comments ' .$row ['postComments' ].' , Time elapsed: ' .$time .'
' ;}
?>PowerShell Copy
<?php
$sql = mysql_query("SELECT users.userUser, links.linksID, links.linksLink, links.linksPost, links.linksTime, links.linksComments,userAvatar FROM users, links WHERE users.userID = links.linksUserID ORDER BY links.linksTime DESC" );
while ($row = mysql_fetch_array($sql )){
$abcd = $row ['userName' ];
$abcd = str_replace (" " , "-" , $abcd );
$time1 = reltime($row ['linksTime' ]);Bash Copy
echo '
' .$row ['linksPost' ].'
Posted by: ' .$row ['userUser' ].', Comments ' .$row ['linksComments' ].' , Time elapsed: ' .$time1 .'
' ;}Code Copy
<?php
// testing
grabimages('SELECT users.userUser, images.imagesID, images.imagesFile, images.imagesPost, images.imagesTime, images.imagesComments FROM users, images WHERE users.userID = images.imagesUserID ORDER BY images.imagesTime DESC LIMIT 20');Code Copy
// Display footer
require("./templates/$template/footer.php");
?>Code Copy
var gallery=new virtualpaginate("virtualpage",10)
gallery.buildpagination("gallerypaginate")
Thanks in advance.
PS: I am a self taught php programmer, so please mention the right code to hide virtual pagination from one tab to the other.
Trinity105 reputationPosted Sep 27, 2009, 7:46 AM EDT
venu A5 reputationPosted Oct 1, 2009, 4:31 AM EDT
Thanks anyway. Learned something new as a self taught prgrammer.