Re: [PHP] Check time in between times

2008-02-16 Thread Emilio Astarita
27;G') * 60) + date('i'); $start = strange2min($start); $end = strange2min($end); return ( ($start <= $now ) &&($now <= $end)); } // test $start = "1:30am"; $end = "9:39am"; echo '', var_dump(checkinzone($start,$end)),''; -- Emilio Astarita <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Emilio Astarita
ot;12345678". > > I have the mySQL database fieldtype set to bigint(14). If the maximum > length a barcode can be is 14, is there a better fieldtype to use that > will keep the zeros? Use ZEROFILL, example: CREATE TABLE `db`.`table` ( `barcode` integer(14) ZEROFILL NOT NULL )

Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Emilio Astarita
Peter Ford <[EMAIL PROTECTED]> writes: > Emilio Astarita wrote: >> Hi people, >> > > A static method should still be able to set values of private members. I do > something like: > ... > Thank you, I was not sure how to implement it. Another question. It wo

[PHP] Create collections of objects

2008-02-14 Thread Emilio Astarita
of these objects. I can't figure a convenient way. A static function its a good posibility? I have some ideas but they imply public setters of the class `element'. Thanks for any help. -- Emilio Astarita <[EMAIL PROTECTED]> Gnus http://gnus.org/ <http://www.gnu.org/philosophy/f