Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recommended Posts

по мотивам: http://opencartforum...post__p__107475

Q: Как можно получить число записей возвращаемых запросом $this->db->query(); ?
A:

$query = $this->db->query("SELECT `product_id` FROM `".DB_PREFIX."product` WHERE `status`='1'");
$numActiveProducts = $query->num_rows;
echo $numActiveProducts;
Edited by afwollis
добавил "по мотивам..."
  • +1 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.