Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

server-side formatter loop not showing last row

$
0
0
array( 'db' => '`s`.`nom`', 'dt' => 2, 'formatter' => function( $d, $row ) {
include('connect.php');
$id=$row[0];
                    $sqlg="SELECT s.nom as lenom FROM societe s,document_societe d where d.id_doc='$id' and s.id_soc=d.id_soc ";
                    $reqg= mysql_query ($sqlg) ;
                    $datag= mysql_fetch_array($reqg);
                    $lesoc='';
                    $nbr=mysql_num_rows($reqg);
                    $i=0;
                    while($datag= mysql_fetch_array($reqg)) 
                             {  $idn = $datag['lenom'];
                                $lesoc.=$i." <span class='label label-outline-success'>".$idn."</span><br/>";
                                $i=$i+1;
                             }

            return $lesoc;},'field' => 'lenom','as' => 'lenom' ),

Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>