www.webdeveloper.com
Results 1 to 2 of 2

Thread: Last Quick problem - outputting a table?

  1. #1
    Join Date
    Mar 2005
    Posts
    172

    Last Quick problem - outputting a table?

    Hi,

    I have this link which Iím trying to add a table to:

    PHP Code:
    else $pagelinks .= '<a href="'.$_SERVER['PHP_SELF'].'?page='.$x.'">'.$x.'</a>&nbsp;'
    So I thought it would work Like this:

    PHP Code:
     else $pagelinks .= '<table width='600'><tr><td><a href="'.$_SERVER['PHP_SELF'].'?page='.$x.'">'.$x.'</a>&nbsp;</td></tr></table>'
    However I get the error: unexpected T_LNUMBER?

    Thanks

    Chris

  2. #2
    Join Date
    Dec 2006
    Location
    Escazķ (Costa Rica) and Mallorca (Spain)
    Posts
    3,234
    PHP Code:
    else $pagelinks .= "<a href='{$_SERVER['PHP_SELF']}?page=$x>$x</a>&nbsp;"
    PHP Code:
    else $pagelinks .= "<table width='600'><tr><td><a href='{$_SERVER['PHP_SELF']}?page=$x'>$x</a>&nbsp;</td></tr></table>"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles