I am trying to do something that should be simple,, but i got a blad spot to prove i aint smart enough,, <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/no2.gif" style="vertical-align:middle" emoid=":no2:" border="0" alt="no2.gif" /> <br /><br />i am trying to simply read one item out of a database table, compair that item as a check.<br /><br />here is what i done.<br /><br />no errors, its just not working..<br /><br />to collect the info from dbase i added.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Â $mastpw_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MAST_PW'");<br /> Â $mastpw = tep_db_fetch_array($mastpw_query);<!--c2--></div><!--ec2--><br /><br />and the compair line i tried is.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if ($password == "$mastpw") {<!--c2--></div><!--ec2--><br /><br />i know the rest of the code works, because if i hard code the info into the if line,, like<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if ($password == "123456") {<!--c2--></div><!--ec2--><br /><br />then it works fine.<br />with the line trying to compair it to the value from the dbase, it dont give an error, but just says they didnt match.<br /><br />anyone shed some light on what i did worng?<br /><br />Thanks in advance<br />Tom<!--content-->
ISSUE RESOLVED!!<br /><br />thanks though all<br /><br />Regards<!--content-->
Glad you fixed it! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><br /><br />I'm moving your post for organization <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid="" border="0" alt="wink.gif" /><!--content-->
ISSUE RESOLVED!!<br /><br />thanks though all<br /><br />Regards<!--content-->
Glad you fixed it! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><br /><br />I'm moving your post for organization <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid="" border="0" alt="wink.gif" /><!--content-->