What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

REQ Nested table question.

k439

New member
Joined
Dec 9, 2021
Messages
10
Reaction score
0
Points
1
Location
Texas
I am trying to use the demo data base and the nested table example for orders and order details.
I thought it was supposed to show a list of orders and when you clicked edit on a specific order it would show the order details. But all I get is order details and not a list of orders. Code is as follows

<?php
include "connectionXcrudDemo.php";
include XCRUD_LOCATION;

$xcrud = Xcrud::get_instance();

$xcrud->table('orders'); // main table
$xcrud->nested_table('products_list','orderNumber','orderdetails','orderNumber');

$products_list = $xcrud = Xcrud::get_instance('products_list');

echo $xcrud->render();
?>
 
Top Bottom