$sql = "SELECT pd_id, pd_name, pd_price, pd_qty
FROM tbl_product ORDER BY pd_id DESC LIMIT 6";
ซึ่งมันแสดง error แบบนี้ครับ
Code
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 0, 6' at line 2