This code below works successfully adding data to the correct db table column.
But, I’m trying to find a way to have the ‘amount’ appear as a negative in the myphpadmin table column named ‘amount’. Is it something I would tweak here:
// add data to transact table $insert_buy = $db->insert('transact', [ 'id_user' => $user_id, 'amount' => $amount ]);
Any help is appreciated