PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
cannot get quote method to working

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
SpookieUkie



Joined: 28 May 2008
Posts: 2

PostPosted: Wed May 28, 2008 5:33 am    Post subject: cannot get quote method to working Reply with quote

For some reason, the quote method does not seem to work, yet I know I have an instance of the mdb2 object.

I have:
$db = DBConnection::getInstance();
$ipAddress = $db->quote($_SERVER['REMOTE_ADDR'], 'text');

Any ideas

Thanks
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Wed May 28, 2008 7:44 am    Post subject: Reply with quote

Do you really think that "does not seem to work" is a good description of an error?
Back to top
View user's profile Send private message
SpookieUkie



Joined: 28 May 2008
Posts: 2

PostPosted: Wed May 28, 2008 2:48 pm    Post subject: Reply with quote

No error message is returned. No value is returned
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Wed May 28, 2008 4:07 pm    Post subject: Reply with quote

Okay, that's a better description. Wink

Please insert the following lines at the beginning of your script:
Code:

error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);


You should now get an error message.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement