DEMO SITE v1.7.15

Many-to-many relations Minimal theme

Many-to-many (FK) relations can be displayed as simple multiselect fields. This method changes only fk table.

HIDE CODE
<?php
	$xcrud = Xcrud::get_instance();
    $xcrud->table('customers');
    $xcrud->columns('customerNumber,Customer orders,city');
    $xcrud->fk_relation('Customer orders','customerNumber','customers_orders_fk','customer_id','order_id','orders','orderNumber',array('orderNumber','orderDate'));
    echo $xcrud->render();
?>

Customers

#CustomernumberCustomer ordersCity 
112810109 2003-03-10 00:00:00, 10110 2003-03-18…Frankfurt
2129San Francisco
3131NYC
4144Luleå
5145Kobenhavn
6146Lyon
7148Singapore
8151NYC
9157Allentown
10161Burlingame
Add Export into CSV Print Search