counting 11 record in two table how can

Hello members,
i see record 11 , 21 and 31 in two table how can this
i put this code

[php]<?php
$cou = 1;
for ($i= 1; $i <= 2; $i++) {
?>

<?php for ($ii= 1; $ii <= 5; $ii++) { ?> <?php $cou = $cou+1; }?>
<?php echo $cou ?>
<?php}?>[/php]

sql record put this record

[php]<?php
$totalrecord = 11;
$lastPage = ceil($totalrecord/2);
echo $lastPage;
$cou = 1;
for ($i= 1; $i <= 2; $i++) {
$rowpap1 = “Select * from detailc where styden LIKE ‘$list%’ LIMIT $cou,5”;
$rowpap1 = mysqli_query($conn, $rowpap1);
?>

<?php while($row = mysqli_fetch_array($rowpap1)){ ?> <?php $cou = $cou+1; } ?>
<?php echo $row["styden"]; ?>
<?php } ?>[/php]

help me i see 6 record one table and 5 record 2st table

Can you tell more what you tryiong to do? do you want count 11 record?

Sponsor our Newsletter | Privacy Policy | Terms of Service