Re: [PHP] Email Body

2003-10-29 Thread micro brew
,' '). str_pad('10', 10,' ',STR_PAD_LEFT). str_pad('2.00', 10,' ',STR_PAD_LEFT). \n; output: long long name1000200.00 name10 2.00 Marek micro brew wrote: I am sending an email using mail() and it works fine

[PHP] Email Body

2003-10-22 Thread micro brew
I am sending an email using mail() and it works fine. But the formatting of the body of the email is wrong. I want to format part of it in columns sort of like this: Name Quantity Price Can this be done neatly without using an html email? Also what is the trick to making line

Re: [PHP] Session Variables in a Class

2003-09-10 Thread micro brew
it. Thanks again for the help. Mike * Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work

[PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly ($_SESSION['name']='somevalue')

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
); exit(); } } else { session_register('loginError'); header(Location: $this-loginPage); exit(); } } } //closes class } ? --- CPT John W. Holmes [EMAIL PROTECTED] wrote: From: micro brew [EMAIL PROTECTED] I've been experimenting with sessions. I can make them work

[PHP] Single Quotes vs Double Quotes

2003-09-08 Thread micro brew
Hi everyone, Could somebody please explain to me the difference between single quotes and double quotes in PHP. It seems like they can be used interchangeably a lot in PHP but not always. For example: This works: header('Location: http://somedomain.com') This does not work: header('Location: