RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
] On Behalf Of Richard Heyes Sent: Thursday, December 04, 2008 3:17 PM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty (login fails), the 1st

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
:[EMAIL PROTECTED] On Behalf Of Richard Heyes Sent: Thursday, December 04, 2008 3:17 PM To: David Stoltz Cc: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
(HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 6:59 AM To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE You should check if php.ini has display_error off. This can prevent all error message to be shown. SanTa - Original Message - From: David

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
] To: Richard Heyes [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, December 05, 2008 12:42 PM Subject: RE: [PHP] Help with IF ELSE I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work if the recordset isn't empty. I'm wondering

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
Subject: RE: [PHP] Help with IF ELSE The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: ßt¦?rDþž’Q…ß±– For example, the above has ’ This stops the PHP processing cold when executing

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
WOO HOO - addslashes baby! Thank you! -Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 7:26 AM To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE The solution is addslashes(). This function adds a backslash

RE: [PHP] Help with IF ELSE

2008-12-05 Thread tedd
At 7:19 AM -0500 12/5/08, David Stoltz wrote: The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: --snip-- So then, how does one store this type of string? I can't do a string

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
- Original Message - From: David Stoltz [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, December 05, 2008 1:19 PM Subject: RE: [PHP] Help with IF ELSE The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
On Fri, Dec 5, 2008 at 6:42 AM, David Stoltz [EMAIL PROTECTED] wrote: I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work if the recordset isn't empty. I'm wondering, is there any other way to do a redirect in PHP? Thanks That is

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
PROTECTED] Cc: php-general@lists.php.net Sent: Friday, December 05, 2008 3:52 PM Subject: Re: [PHP] Help with IF ELSE On Fri, Dec 5, 2008 at 6:42 AM, David Stoltz [EMAIL PROTECTED] wrote: I turned on error reporting (ALL) as you suggested. Nothing is being sent to the browserstill doesn't work

RE: [PHP] Help with IF ELSE

2008-12-05 Thread ceo
Please do NOT use addslashes. Replace it with this: http://php.net/mysql_real_escape_string It is CRUCIAL if your database might maybe ever consider going international and having charset other than ISO-8856-1 or Latin1 [or the MySQL default of Monty's native language, which is very

RE: [PHP] Help with IF ELSE

2008-12-05 Thread Chrome
-Original Message- From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] Sent: 05 December 2008 14:58 To: php-general@lists.php.net Subject: Re: [PHP] Help with IF ELSE In fact, if I have to redirect, and I am not sure about headers are sent or not, I usually do

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Bastien Koert
On Fri, Dec 5, 2008 at 9:17 AM, tedd [EMAIL PROTECTED] wrote: At 7:19 AM -0500 12/5/08, David Stoltz wrote: The problem turned out to be, since I'm using the MCRYPT function to encrypt the password, once in a while the encrypted password will have a bad character: --snip-- So then, how

Re: [PHP] Help with IF ELSE

2008-12-04 Thread Richard Heyes
I'm new to PHP - I'm trying to figure out what is wrong with a simple IF ELSE block I have...if the recordset $rs is empty (login fails), the 1st part of the block works, and redirects the user to default.php - but if the login works, and $rs is not empty, the 2nd else part does not work, and