Value of variable shown as "Array" when from Included file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • boclair

    #1

    Value of variable shown as "Array" when from Included file

    I have this statement to find the latest date that a row was inserted
    ________

    $entry=mysql_qu ery("SELECT contact FROM board ORDER BY contact DESC
    LIMIT 1")or die ("Query failed:<br>$ent ry<br>Error: " . mysql_error());

    while($myrow=my sql_fetch_array ($entry)){
    if (ISSET($myrow['contact'])){
    $latest = date("d M y", ($myrow['contact']+50400));
    }
    }
    ________

    This reports the value for $latest correctly if the statement is in the
    document.

    However when the statement is in an included file the reported value for
    $latest is ... Array

    Where am I going wrong?

    Louise
  • boclair

    #2
    Re: Value of variable shown as &quot;Array&quo t; when from Included file

    boclair wrote:[color=blue]
    > I have this statement to find the latest date that a row was inserted[/color]

    Sorry to have wasted anybody's time but it was in the end a careless typo

    Louise

    Comment

    Working...