Hi,

Using this in my IF statement sends the message:

Unsupported operand types

On the href line.

<?php
if ( $obj-url )
{
echo "<a href='{$obj->url}'>{$obj->url}</a>"; 

}
else
{
   echo "n/a"; 
}
?>

Is that reffering to my "'s or {}'s Can anyone please advise?

Ta

Chris

    you are missing your > in the if condition

    you have

    if ( $obj-url )

    it should be

    if ( $obj->url )
      Write a Reply...