gsc1ugs Posted December 1, 2017 Share Posted December 1, 2017 I cant understand why this is not working.. I compare two strings, if they match then do something.. I'm getting values 1 for the first and 8 for the second?? carquest-clearvape carquest-carquest if (strcmp($_SESSION['username'],$username)==0) echo $this->amount($offer['amount'], $listing['currency']); else echo $this->amount("*****", $listing['currency']); Link to comment Share on other sites More sharing options...
gsc1ugs Posted December 1, 2017 Author Share Posted December 1, 2017 Just to add, the $username gets the users name off the system whom ever is logged in Link to comment Share on other sites More sharing options...
justsomeguy Posted December 1, 2017 Share Posted December 1, 2017 If you print both values that you're comparing I'm sure you'll see why it's doing whatever it is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now