DataTables with Server Side and multiple tables.
DataTables with Server Side and multiple tables.
someonehere
Posts: 4Questions: 0Answers: 0
I'm trying to use the server side example here. https://datatables.net/release-datatables/examples/server_side/server_side.html
I can seem to figure out how to use joins with that script.
Here's my query:
SELECT products.*, category.*, suppliers.supplier_name, tax.value
FROM products
JOIN category ON category.id=products.category_id
JOIN suppliers ON suppliers.supplier_id=products.supplier_id
JOIN tax ON tax.id=category.tax_id
I can seem to figure out how to use joins with that script.
Here's my query:
SELECT products.*, category.*, suppliers.supplier_name, tax.value
FROM products
JOIN category ON category.id=products.category_id
JOIN suppliers ON suppliers.supplier_id=products.supplier_id
JOIN tax ON tax.id=category.tax_id
This discussion has been closed.
Replies
Allan
{ "mData": "item_image",
mRender: function ( data, type, row ) {
return '';
}
}
Allan