Hi,
I have a login that is not working on a clients sever.
The one that doesn't work actually works on my local host and my production server.PHP Code:// doesn't work
$sql = '
SELECT *
FROM microcms_administrators
WHERE administrators_username = "' . $_POST['administrators_username'] . '" and
administrators_pass = PASSWORD("' . $_POST['administrators_pass'] . '")';
// works
$sql = '
SELECT *
FROM microcms_administrators
WHERE administrators_username = "' . $_POST['administrators_username'] . '"';
My clients server people say it is a problem in my script and they dont debug scripts, end of discussion (so far). And all error reporting is turned off on their server (You can mis spell the table name or any SELECT FROM item and there are no errors).
My question, is there any way to echo out the PASSWORD("' . $_POST['administrators_pass'] . '") value to see if it is blank or returning some value that I am not expecting. This way I can either correct it on my level or point it out to the server people.
I also ran this and the password syntax may be wrong
and it puts PASSWORD( 'admin' ) into the tablePHP Code:INSERT INTO
microcms_administrators
SET
administrators_name ='admin',
administrators_username ='admin',
administrators_pass ="PASSWORD( 'admin' )",
administrators_email = 'admin@admin.com'
Thanks for any help
cheers
Loren
Edit:
I just ran
and in my clients db it putPHP Code:INSERT INTO
microcms_administrators
SET
administrators_name ='admin',
administrators_username ='admin',
administrators_pass = PASSWORD( 'admin' ),
administrators_email = 'admin@admin.com'
43e9a4ab75570f5b
which is totally wrong and probably OLD_PASSWORD style
the value should be (with the *)
*4ACFE3202A5FF5CF467898FC58AAB1D615029441
their sql version is 4.1.2 so it should support PASSWORD and did read the nysql documentation that says that there may be these type of isues with upgraded versions.
I think I answered my question





Bookmarks