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(
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
. 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
Count; $i++) {
$row=mysql_fetch_array($result);
$_SESSION['user']=$row['userID'];
$_SESSION['permission']=$row['permissionLevel'];
$_SESSION['company']=$row['companyID'];
}
if
(session_is_registered('un
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
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
6 matches
Mail list logo