How to use 'WHERE' clause using ssp.class.php DataTables

前端 未结 4 1544
独厮守ぢ
独厮守ぢ 2021-02-01 07:36

Okay so i\'m trying to display information from my database using jQuery DataTable (DataTables.net). I can get it to work fine displaying the entire table \'notes\' but I would

4条回答
  •  一个人的身影
    2021-02-01 07:57

    You can use where clause like that;

    $data = SSP::sql_exec( $db, $bindings,
       "SELECT SQL_CALC_FOUND_ROWS ".implode(", ", SSP::pluck($columns, 'db'))."
        FROM $table where Status = 'Unread' // <--where clause here
        $where
        $order
        $limit"
    );
    

提交回复
热议问题