Answer the question
In order to leave comments, you need to log in
How to get all rows from a database?
There is an add-on for opencart that makes import / export of goods.
It has the ability to insert php that will be executed on processing each line.
Task: get any value from the database
There is this:
$products = $this->db->query("SELECT price FROM " . DB_PREFIX . "product_special");
$result = $products->row['price'];
Answer the question
In order to leave comments, you need to log in
$products = $this->db->query("SELECT price FROM " . DB_PREFIX . "product_special");
foreach($products->rows as $raw){
var_dump($raw['price']);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question