$sort, 'o' => $order))); $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM products LEFT JOIN categories ON product_category_id = category_id LEFT JOIN taxes ON product_tax_id = tax_id WHERE product_archived_at IS NULL AND (product_name LIKE '%$q%' OR product_description LIKE '%$q%' OR category_name LIKE '%$q%' OR product_price LIKE '%$q%' OR tax_name LIKE '%$q%' OR tax_percent LIKE '%$q%') ORDER BY $sort $order LIMIT $record_from, $record_to" ); $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); ?>

Products


"> $product_description"; } $product_price = floatval($row['product_price']); $product_currency_code = nullable_htmlentities($row['product_currency_code']); $product_created_at = nullable_htmlentities($row['product_created_at']); $category_id = intval($row['category_id']); $category_name = nullable_htmlentities($row['category_name']); $product_tax_id = intval($row['product_tax_id']); $tax_name = nullable_htmlentities($row['tax_name']); if (empty($tax_name)) { $tax_name_display = "-"; } else { $tax_name_display = $tax_name; } $tax_percent = floatval($row['tax_percent']); ?>
Name Category Description Tax Name Tax Rate Price Action
%