I’m trying to extract the info from columns in a db table (paid_videos) to match up with the array, so the array data will display info in an html table.
here’s what I have:
“`
$data1 = $db->rawQuery(“SELECT id, id_user, id_video, earned_amount, time_date FROM paid_videos”);
if (!empty($data1)) {
foreach ($object as $key=> $data) {
$singledata = myfunction($data[0]);
$paid_list .= PT_LoadPage(‘transactions/list’,array(
‘ID’ => $video->id,
‘PAID_USER’ => $user->id,
‘VIDEO_NAME’ => $video->title,
‘AMOUNT’ => $tr->earned_amount,
“CURRENCY” => $currency,
‘TIME’ => date(“Y-m-d h:i A (T)”, strtotime($video->time_date))
));
}
}
I believe I need help with a loop, and probably more.
I look forward to any assistance.