Searc Joint Error when Using Join sql in server side data tables
Searc Joint Error when Using Join sql in server side data tables
ariiful
Posts: 3Questions: 0Answers: 0
Hello Please help me, My search error when using join server side data tables
This discussion has been closed.
Replies
This is my code:
<?php
/**
* Script: DataTables server-side script for PHP 5.2+ and MySQL 4.1+
* Notes: Based on a script by Allan Jardine that used the old PHP mysql_* functions.
* Rewritten to use the newer object oriented mysqli extension.
* Copyright: 2010 - Allan Jardine (original script)
* 2012 - Kari Söderholm, aka Haprog (updates)
* License: GPL v2 or BSD (3-point)
*/
mb_internal_encoding('UTF-8');
SELECT SQL_CALC_FOUND_ROWS hg.id_kayu, hg.diameter, hg.super, hg.harga_kubikasi, hg.id_kondisi, jn.id_kayu, jn.jenis, lk.id,lk.kondisi
FROM Tharga_log hg LEFT JOIN Tjenis_kayu jn ON hg.id_kayu = jn.id_kayu LEFT JOIN Tlog_kondisi lk ON hg.id_kondisi = lk.id"
.$sWhere.$sOrder.$sLimit;
header('Pragma: no-cache');
<?php > ?>header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
echo json_encode( $output );