expected token: "-string end-", but found "-identifier-"
#1

whats wrong
me trying to check if city or country string is unknown
PHP код:
if(strcmp(city"Unknown" || strcmp(country"Unknown")) 
Reply
#2

if(strcmp(city, "Unknown") && strcmp(country, "Unknown"))

maybe this!
Reply
#3

I missed the ) after first comparison,thanks though
Reply
#4

Quote:
Originally Posted by PowerF
Посмотреть сообщение
I missed the ) after first comparison,thanks though
Anytime!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)