include( "include/db.php" ); $editor = new DTEditor( $db, // DB resource 'inventory', // DB table 'id', // Primary key
include( "include/db.php" );
$editor = new DTEditor(
$db, // DB resource
!isset($_POST['action']) ? 'inventory WHERE stock = 0' : "inventory", // DB table
'id', // Primary key
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.