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--
>
>>
> -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
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
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
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
> - 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
>>
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
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
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
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
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
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
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
> 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
Hi All,
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
15 matches
Mail list logo