Re: [PHP] Email Body

2003-10-29 Thread micro brew
tr_pad('1000', 10,' ',STR_PAD_LEFT). > str_pad('200.00', 10,' ',STR_PAD_LEFT). > "\n"; > echo str_pad('name', 20,' '). > str_pad('10', 10,' ',STR_PAD_LEFT). > str_pad(

[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 ret

Re: [PHP] Session Variables in a Class

2003-09-10 Thread micro brew
. 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 varia

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Count; $i++) { $row=mysql_fetch_array($result); $_SESSION['user']=$row['userID']; $_SESSION['permission']=$row['permissionLevel']; $_SESSION['company']=$row['companyID']; } if (session_is_registered('un

[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') bu

[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: $u