In the php file this works successfully:
// add data to table
$insert_buy = $db->insert('u_paid_videos', [
'id_user' => $user_id,
'video_play_price' => (string)$video_cost_new,
'id_video' => $video_id,
'user_id_uploaded' => $video->user_id,
'video_title' => $video->title,
'earned_amount' => $up_amount,
'time' => $time_start,
'short_id' => $video->short_id,
'session_key' => $_SESSION['session_key']
]);
I’d like to add this data to a different table that has these columns:
id, user_id, paid_id, video_id, amount, admin_com, time
So, I tried this replacement without success:
$insert_buy = $db->insert('videos_transactions', [
'user_id' => $user_id,
'video_id' => $video_id,
'video_play_price' => $amount,
'user_id_uploaded' => $paid_id,
'earned_amount' => $admin_com,
'time' => $time
]);
I’m not well-versed in this, so any guidance with this is welcomed.