erme Posted February 1, 2010 Share Posted February 1, 2010 Hi, how can I do something like this? if ($r['Something'] = "somethingindb") { echo "blah"; } 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"; } 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 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. Link to comment https://forums.phpfreaks.com/topic/190575-if-statement/#findComment-1005129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.