mysql_real_escape_string
| From: | Ron Piggott | Date: | Fri, 27 Apr 2007 23:44:32 +0000 |
| Subject: | mysql_real_escape_string | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-43504@lists.php.net to get a copy of this message | ||
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_directory_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_directory_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