Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/24/2022 in all areas

  1. Because you're asking for the number of rows, not the actual data. You want to fetch the row data and use that. Some searching suggests that you'd do that using this code: return $query->row()->total_paid_amount Also, if you're trying to get a sum of all payments, you probably don't want to be using GROUP BY, and should remove p_id from your select list.
    1 point
  2. Thank you for sharing that. Is there a question to go with it? Please use code button <> when posting code.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.