 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
SpookieUkie
Joined: 28 May 2008 Posts: 2
|
Posted: Wed May 28, 2008 5:33 am Post subject: cannot get quote method to working |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Wed May 28, 2008 7:44 am Post subject: |
|
|
| Do you really think that "does not seem to work" is a good description of an error? |
|
| Back to top |
|
 |
SpookieUkie
Joined: 28 May 2008 Posts: 2
|
Posted: Wed May 28, 2008 2:48 pm Post subject: |
|
|
| No error message is returned. No value is returned |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Wed May 28, 2008 4:07 pm Post subject: |
|
|
Okay, that's a better description.
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 |
|
 |
|
|
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
|
|