creating loop for jquery datatables?
<pre><code>/*
 * SQL queries
 * Get data to display
 */
$sQuery = "
        SELECT SQL_CALC_FOUND_ROWS `" . str_replace(" , ", " ", implode("`, `", $aColumns)) . "`
        FROM   $sTable
        $sWhere
        $sOrder
        $sLimit
        ";
$rResult = mysql_query($sQuery, $gaSql['link']) or fatal_error('MySQL Error: ' . mysql_errno());
</code></pre>

<p>It is how specified in datatables...but my cindition is like this..</p>

<pre><code>for($i==0;$i&lt;count($val);$i++){
$con ='ID='.$val[$i];

$sQuery = "
        SELECT SQL_CALC_FOUND_ROWS `" . str_replace(" , ", " ", implode("`, `", $aColumns)) . "`
        FROM   $sTable
        $sWhere
                $con 
        $sOrder
        $sLimit
        ";
$rResult = mysql_query($sQuery, $gaSql['link']) or fatal_error('MySQL Error: ' . mysql_errno());
}
</code></pre>

<p>Can i use like this or cant...will datatables support it ...or can we encode that array result?</p>
