hi all;

what is wrong with in this code, please correct it

thanks

<?php
					$value="";
					$city="";
					echo $result=city::getDisplayName($value->id==$city);
					?>

Hi there,
you're treating $value as if it were an object while it is in fact a string "".
You cannot write $value->id unless you first assign an instance of an object to $value.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.