erme Posted February 1, 2010 Share Posted February 1, 2010 Hi, how can I do something like this? if ($r['Something'] = "somethingindb") { echo "blah"; } Quote Link to comment https://forums.phpfreaks.com/topic/190575-if-statement/ Share on other sites More sharing options...
taquitosensei Posted February 1, 2010 Share Posted February 1, 2010 how about if ($r['Something'] == "somethingindb") { echo "blah"; } Quote Link to comment https://forums.phpfreaks.com/topic/190575-if-statement/#findComment-1005127 Share on other sites More sharing options...
erme Posted February 1, 2010 Author Share Posted February 1, 2010 Perfect! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/190575-if-statement/#findComment-1005128 Share on other sites More sharing options...
wildteen88 Posted February 1, 2010 Share Posted February 1, 2010 When comparing values use == = is used for assigning values. Quote Link to comment https://forums.phpfreaks.com/topic/190575-if-statement/#findComment-1005129 Share on other sites More sharing options...
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.