I have a table already paged, and I need a cycle that is showing the records every certain time so the setTimeout
in my case the variable $ b is responsible for creating the buttons that contain the href depending on the records more buttons are being created, by pressing one of these the value is passed to the variable "page".
This is the code that creates the buttons
for($b=1; $b<=$a; $b++)
{
?><a href="paging.php?page=<?php echo $b;?>">
<?php echo $b." ";?> </a> <?php
}
This is my javascript code
setTimeout(function(){
<?php
$b=1;
?>
location.href="paging.php?page=<?php echo $b?>"
<?php $B++?>
} , 2000);
</script>
I hope someone can help me.