Re: [PHP] database hell

2012-07-15 Thread Nick Edwards
On 7/12/12, Ashley Sheridan wrote: > > > "ma...@behnke.biz" wrote: > >> >> >> >>Nick Edwards hat am 12. Juli 2012 um 14:00 >>geschrieben: >> >>> On 7/12/12, Gibbs wrote: >>> >>> > mysql_query("DELETE from userprefs where clientr='$User'", >>$connmy); >> >> >>Sidenote: And don't forget to valida

Re: [PHP] PDO: extend or encapsulate?

2012-07-15 Thread shiplu
>From OOP point of view. Use encapsulation: When a class has a "has-a" relation-ship with other class you should use encapsulation. For example, If MyDB is a class that "has-a" pdo driver in it, then PDO will be encapsulated inside MyDB class. This is also called containment. MyDB should contain P

Re: [PHP] PDO: extend or encapsulate?

2012-07-15 Thread tamouse mailing lists
On Sun, Jul 15, 2012 at 5:50 AM, shiplu wrote: > From OOP point of view. > > Use encapsulation: > When a class has a "has-a" relation-ship with other class you should use > encapsulation. For example, If MyDB is a class that "has-a" pdo driver in > it, then PDO will be encapsulated inside MyDB cla

Re: [PHP] Seeking a scheduling algorithm

2012-07-15 Thread Matijn Woudt
On Sat, Jul 14, 2012 at 10:53 PM, Tedd Sperling wrote: > Hi gang: > > Does anyone have a resource, or better yet code, to solve the scheduling > problem described below? > > Let's say you have a week calendar that has openings between 8:00am to 5:00pm > for Monday through Friday (40 hours). > >

Re: [PHP] Seeking a scheduling algorithm

2012-07-15 Thread Tedd Sperling
_ t...@sperling.com http://sperling.com On Jul 14, 2012, at 6:32 PM, Bill Guion wrote: > On Jul 14, 2012, at 4:53 PM, php-general-digest-h...@lists.php.net wrote: > >> From: Tedd Sperling >> Does anyone have a resource, or better yet code, to solve the scheduling >> probl