--- Lenny Davila <[EMAIL PROTECTED]> wrote:

> 
> I have a function called into a containing div that is absolutly positioned
> with css.  The funtion is:
> function makeDate($mydate)
> {
>       $year = substr($mydate,0,4);
>       $month = substr($mydate,4,2);
>       $day = substr($mydate,6,2);
>       $theDate = $day.'/'.$month.'/'.$year;
>       $theDay = date("l", mktime(0,0,0,$month,0,0));
>       echo $theDate.'<br />'.$theDay;
> }
> 
> 
> The echo'd content shows up in the wrong place...
> after the opening table tag:
> <table width="500" border="0">30/07/2005<br />Friday<tr>
> 
> instead of in the table cell it is called in.
> The code is:
> 
> echo '<tr><td width="86">'.makeDate($myRow["date"]).'</td><td
> colspan="2"><span
> class="16"><strong>'.$myRow["name"].'</strong></span></td></tr>
> 
> Is there a reason it is showing up in th wrong place?  TIA
> Lenny

Replace:

        echo $theDate.'<br />'.$theDay;

with

        return($theDate.'<br />'.$theDay);

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to