Jump to content

dbpassword function


deemurphy

Recommended Posts

I thought it would help if I post the code and the error I am getting.

Code:

<?php

$DATABASE_HOST = "localhost";
$DATABASE_USER = "root";
$DATABASE_PASS = "mypassword";
$DATABASE_DB = "sugarcrm";
$DATABASE_PASSWORD_FUNCTION = "__DBPASSWORDFUNCTION__";

Error:

Can't perform query: FUNCTION sugarcrm.__DBPASSWORDFUNCTION__ does not exist
SELECT password AS passwd1, __DBPASSWORDFUNCTION__('mypassword') AS passwd2 FROM timesheet_user WHERE username='admin'

?>

Admin is the timesheet username.  I am using timesheet.php and put the database in sugarcrm.  The password for all is the same.

Thank you
Dee
Link to comment
https://forums.phpfreaks.com/topic/28722-dbpassword-function/#findComment-131516
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.