Qwiz Posted February 4, 2005 Posted February 4, 2005 I am trying to do something that should be simple,, but i got a blad spot to prove i aint smart enough,, i am trying to simply read one item out of a database table, compair that item as a check. here is what i done. no errors, its just not working.. to collect the info from dbase i added. > $mastpw_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MAST_PW'"); $mastpw = tep_db_fetch_array($mastpw_query); and the compair line i tried is. >if ($password == "$mastpw") { i know the rest of the code works, because if i hard code the info into the if line,, like >if ($password == "123456") { then it works fine. with the line trying to compair it to the value from the dbase, it dont give an error, but just says they didnt match. anyone shed some light on what i did worng? Thanks in advance Tom Quote
Qwiz Posted February 4, 2005 Author Posted February 4, 2005 ISSUE RESOLVED!! thanks though all Regards Quote
borfast Posted February 4, 2005 Posted February 4, 2005 Glad you fixed it! I'm moving your post for organization Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.