Last week the server my web site hosting company uses went down (along
with a bunch of other servers) My files have been moved to another
server the company uses. I am in the midst of configuring my site for
the new server.
Before the server went down I wasn't getting error messages. I know my
My actual question is this line of code:
$other = mysql_real_escape_string($other);
is giving me this error message:
Warning: mysql_real_escape_string(): Access denied for user
'nobody'@'localhost' (using password: NO) in /path/to/file/file.php on
line 148
Warning:
The following PHP command
$new_maintainers_notes =
mysql_real_escape_string($new_maintainers_notes);
returned this error while running in a ***cron***.
Warning: mysql_real_escape_string(): Access denied for user:
'[EMAIL PROTECTED]' (Using password: NO)
in
u use localhost right? try ip instead.
127.0.0.1
- Original Message -
From: Ron Piggott [EMAIL PROTECTED]
To: PHP DB php-db@lists.php.net
Sent: Saturday, April 28, 2007 6:44 AM
Subject: [PHP-DB] mysql_real_escape_string
The following PHP command
$new_maintainers_notes
Ron Piggott wrote:
I am creating a form where I am using
$web_site_#
for the various fields. At the present time there are 11 fields I am
asking the user to key in. I am wondering if there is a slick way to
use the mysql_real_escape_string command with this so
$web_site_1 =
I am creating a form where I am using
$web_site_#
for the various fields. At the present time there are 11 fields I am
asking the user to key in. I am wondering if there is a slick way to
use the mysql_real_escape_string command with this so
$web_site_1 =
Hi Ron
Use nl2br()...its adds in br / tags. The other option is to use str_rplace
and replace the characters with ones of your choice
bastien
From: Ron Piggott [EMAIL PROTECTED]
To: PHP DB php-db@lists.php.net
Subject: [PHP-DB] mysql_real_escape_string for HTML p???
Date: Sat, 5 Mar 2005 23:21
I know of the
$variable = mysql_real_escape_string($variable);
It works just nicely to allow some of the wild cards to be saved to a mySQL
table.
Is there something like this for HTML that when you retrieve from a variable
in the table an ENTER would be converted to P
I am mainly talking about