Hi I used ssp class for datatable.
function prod($a){
$query= mysql_query("SELECT name FROM products WHERE sipid = '$a'");
while($row = mysql_fetch_array($query)){
return $row[name];
}
}
Ssp.class.php
array(
'db' => 'id',
'dt' => 5,
'formatter' => function( $d, $row ) {
return prod($d);
}
)
I have two rows in database but this it only shows one row?