product listing

This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 11:32:32 -04:00
parent 9a9d313cc7
commit a978096520
3 changed files with 52 additions and 44 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class Product_model extends Model
{
public function getProducts() {
$mysql = "SELECT * FROM products ORDER BY id ASC ";
$db = db_connect();
$query = $db->query($mysql);
return $query->getResult('array');
}
}