[PHP] printf and number_format rounding

2006-05-03 Thread Duffy, Scott E
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)/$

RE: [PHP] Re: Export data with PHPMyAdmin

2006-04-21 Thread Duffy, Scott E
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

RE: [PHP] Re: Help with query

2006-02-21 Thread Duffy, Scott E
> 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

[PHP] RE: (SCL: 5) [PHP] query problem.

2006-01-24 Thread Duffy, Scott E
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

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Duffy, Scott E
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:

[PHP] mcrypt

2006-01-18 Thread Duffy, Scott E
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

[PHP] RE: mcrypt

2006-01-13 Thread Duffy, Scott E
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

[PHP] mcrypt

2006-01-13 Thread Duffy, Scott E
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_

RE: [PHP] Sending mail with php-

2006-01-11 Thread Duffy, Scott E
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

RE: [PHP] Newbie question: need to transfer directory contents frommy local machine to my website

2006-01-04 Thread Duffy, Scott E
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

[PHP] Problems with session data.

2006-01-03 Thread Duffy, Scott E
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