I have a table of 1400+ rows and adding approx 20 everyday getting my page slow
I am using while loop to generate table rows and columns and also some JS like this
<?php
$cp=0
while($row=mysqli_fetch_array($rs)){
        $cp++;
        $editid = $row['id'];   
       $ccperson = $row['cperson'];
?>
        <tr>
        <td span id="cperson<?php echo $cp;?>"><?php echo $ccperson;?></span></td>
        <Input id="cperson_input<?php echo $cp;?>" style="display:none"/>
       <script type="text/javascript">
        // On double click show the input box
$( "#cperson<?php echo $cp;?>" ).dblclick(function() {
    getsetEdit('<?php echo $cp;?>','<?php echo $editid;?>', 'cperson');
    });
</script>
<?php
</tr>
}
?>
Is it possible to get it done on a fly?
 
    