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