[PHP] BUG?: for loop using chars
Hello, I'm trying to generate this list of letters A..Z, using this for ($l='A'; $l<='Z'; $l++) echo $l."-"; And it doesn't work. It generates the output included at the end of this message (I used to be shorter) But this works for ($l='A'; $l<='Y'; $l++) echo $l."-"; generating the expected output. IS this a bug in PHP? Any help? Please, if you can, Cc to my email: [EMAIL PROTECTED] TIA, Erich --- Wrong output: A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z-AA-AB-AC-AD-AE-AF- AG-AH-AI-YV-YW-YX-YY-YZ- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] NEED BOOK: DB Abstaction
Hello, Can anyone here, please, recommend me a good book that covers the DB abstracion that has PHP4? Most of the books only deal with MySQL, and that's not always my choice for a DB administrator. So I need to program scripts that can connect to any DB. I use this in ASP: I write a tiny script that only connects to a DB, and then I include it in any script that needs DB connectivity. Then, If I change the DB, I only change the tiny script, and the rest works just like before. (By the way, is it possible to do this in PHP at all? I believe it is) Please, if you have any books you can recommend Cc to my email address: [EMAIL PROTECTED] Thanks, Erich Reimberg N -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Date/Time Arithmetic
Hello, Is it possible to do some arithmetic with time/date values in PHP? for example, to calculate: today + 1050 days. today - 7 days. etc. I mean, does PHP have functions to perform these operations? Thanks, Erich Reimberg. PS. I'm new to PHP, and I didn't find anything like this in the FAQ Please Cc to my email: [EMAIL PROTECTED], for there are many posts in this group that my server seems to loose. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]