Jump to content

Recommended Posts

Posted

I am trying to do something that should be simple,, but i got a blad spot to prove i aint smart enough,, :rolleyes:

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...