] 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
:[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
(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
]
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
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
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
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
- 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
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
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
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
-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
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
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
14 matches
Mail list logo