Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help please! (creating an array, getting values from database)

specdroid

Apprentice
Advanced Member
Messages
94
Reaction score
0
Points
26
Hi! Eto po yung php function ko inside a class po.

Code:
public function offset()
{
$in_offset = "select 
date_format(b.date,'%W'),
b.date as ddate,
a.time_in as daily_time_in,
b.time_in as schedule_time_in,
a.time_out as daily_time_out,
b.time_out as schedulte_time_out,
minute(timediff(a.time_out,b.time_out)) as time_out_offset,
minute(timediff(a.time_in,b.time_in)) + minute(timediff(a.time_out,b.time_out)) as daily_offset,
minute(timediff(a.time_in,b.time_in)) as time_in_offset
from 
daily_schedule a
left join daily_attendance b on a.date=b.date and a.employee_id = b.employee_id
where 
b.employee_id=".$this->user." and b.date='".$this->date."'
group by 
b.date
";

$result = $this->mysqli($in_offset);

$r1 = $result->fetch_array(MYSQLI_ASSOC);

return $r1;
}

gusto ko pong mangyari is may another function po na kkuha ng dates from a certain table in my db na gagawing array then ibabato niya sa function ko sa taas. working na po kasi yan pero for a single date lang po. gusto ko kasi is yung multiple. thank you po sa tutulong. :pray: :pray: :pray:
 
Back
Top Bottom