Re: mysql_real_escape_string

From: Date: Sat, 28 Apr 2007 01:17:33 +0000
Subject: Re: mysql_real_escape_string
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-43506@lists.php.net to get a copy of this message
u use localhost right? try ip instead. 127.0.0.1 ----- Original Message ----- From: "Ron Piggott" <ron.php@actsministries.org> 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 = > mysql_real_escape_string($new_maintainers_notes); > > returned this error while running in a ***cron***. > > Warning: mysql_real_escape_string(): Access denied for user: > 'actsmin@localhost' (Using password: NO) > in /home2/actsmin/actsministries-www/memberservices/administration/ministry_dir ectory_annual_review_maintenance.php on line 39 > > Warning: mysql_real_escape_string(): A link to the server could not be > established > in /home2/actsmin/actsministries-www/memberservices/administration/ministry_dir ectory_annual_review_maintenance.php on line 39 > > where > > $new_maintainers_notes = "Listing has been set for it's annual review"; > > > > But when I return it from the web --- ie http://www........... > no > error. > > Any idea why the cron is upset? > > Ron >

« previous php.db (#43506) next »