Jump to content

why is strcmp not working?


gsc1ugs

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...