Jump to content
gsc1ugs

why is strcmp not working?

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']); 	

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...