In my controller I have a PayPal IPN listener function which calls the mysql_real_escape_string function. This causes a warning, I think because the session is not logged onto the database:
2012-11-21 14:43:08 Warning: Warning (2): mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: Access denied for user 'xyz'@'localhost' (using password: NO) in [/home/f20easy/epdshadow/Controller/SubsController.php, line 291]
Trace:
mysql_real_escape_string - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 291
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 87
Trace:
mysql_real_escape_string - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 291
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 87
I need the connection to log onto the database. How do I do this in my controller?
Thanks.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment