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

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 > sen

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 ver

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
To: "David Stoltz" <[EMAIL PROTECTED]> Cc: 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 brow

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 > T

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
> - Original Message - From: "David Stoltz" <[EMAIL PROTECTED]> > To: > 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 >>

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 replace

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 HostWare Kft.
ks! -Original Message- From: Sándor Tamás (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. San

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
t; <[EMAIL PROTECTED]> To: "Richard Heyes" <[EMAIL PROTECTED]> Cc: 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 reco

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
ndor Tamás (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 - Fr

Re: [PHP] Help with IF ELSE

2008-12-05 Thread HostWare Kft.
rom: [EMAIL PROTECTED] [mailto:[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

RE: [PHP] Help with IF ELSE

2008-12-05 Thread David Stoltz
L 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

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 > wor