Are printf and number_format supposed to round?
echo ($hcount-$lcount)/$hilow." ";
echo number_format(($hcount-$lcount)/$hilow,2,'.','');
0.208333 0.21
0.145833 0.15
0.17 0.17
0.083 0.08
Printf ("%.2f",($hcount-$lcount)/$
Use mysqldump. Quick & easy.
-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED]
Sent: Friday, April 21, 2006 8:56 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Export data with PHPMyAdmin
Forgot to say that the scandic fonts are ok in the tables...
""William Stokes
> SELECT * FROM exams LEFT JOIN results ON exams.id_test=results.id_test WHERE
> results.id_test IS NULL AND id_student=".$user
exams.id_test=results.id_test
results.id_test IS NULL
think those are preventing this from happening.
Wouldn't you want this
Results.id_student IS NULL
Since if the s
Viewing in browser? If so view source.
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 25, 2006 7:01 AM
To: PHP List
Subject: (SCL: 5) [PHP] query problem.
Hi guys.
I got an entry in a field called emailfrom in my table (MySQL db).
The data in
I have a combo php javascript to do that. Trying to dig it up.
Send email to [EMAIL PROTECTED] and ill have it separated by then.
-Original Message-
From: Dan Parry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 10:18 AM
To: 'John Nichel'; php-general@lists.php.net
Subject:
Is it possible to set the key length for mcrypt with the cipher
Blowfish? Specifically to lets say 128 bits?
mcrypt_get_key_size
returns int but is it bytes bits?
Maybe I could do with openssl?
Ideas and thoughts very welcome.
Thanks,
Scott
Doh! Nm.
_
From: Duffy, Scott E
Sent: Friday, January 13, 2006 11:47 AM
To: 'php-general@lists.php.net'
Subject: mcrypt
Trying to encrypt then decrypt text with php using mcrypt. The encrypt seems to
work but when I decrypt it with a differ
Trying to encrypt then decrypt text with php using mcrypt. The encrypt seems to
work but when I decrypt it with a different script I get most of it but some
garbage. Using blowfish. So to test.
Encrypt.php
$iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);
$iv = mcrypt_create_
This is what I use to send email via php. I have sent hundreds at once.
$fromname="Cohen, Dotan";
$fromaddress="[EMAIL PROTECTED]";
$subject ="Subject";
$message="message body";
$from=" [EMAIL PROTECTED]";
$headers = "MIME-Version: 1.0\n";
$headers
I would take a look at glob.
http://us2.php.net/manual/en/function.glob.php
Scott
-Original Message-
From: Jason Pappin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 10:48 AM
To: Jon Westcot; PHP General
Subject: Re: [PHP] Newbie question: need to transfer directory conten
I thought I was using session data and variables correctly, but I am
having some issues. I am using it to create a login but if I have
another user on a different machine my session data gets changed to who
last logged in. I had changed so it used https but changed it back and
it still seems to be
11 matches
Mail list logo