Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: $Row

  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    94
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Internet Explorer $Row

    I want the row to be in a link.

    EXAMPLE: Getting Threads out of the database.

    A row called "Help Please" Will be linked to whatever link I want.

    Here's what I got. As you can see, It says "VIEW" and that's the link but I want the row beside it to be link so VIEW doesn't have to be there.

    Here:

    PHP Code:
    echo $row['title'] . '<a href="/forum/viewthreads.php?id=' $row['id'] . '">VIEW</a>';echo $row ['name']; 

  • #2
    Regular Coder
    Join Date
    Sep 2006
    Location
    Vermont, USA
    Posts
    154
    Thanks
    0
    Thanked 6 Times in 6 Posts
    By row i'm guessing you mean $row['name']. Replace that entire line with this...

    PHP Code:
     echo $row['title'] . '<a href="/forum/viewthreads.php?id=' $row['id'] . '">'.$row['name'].'</a>'
    Active PHP/MySQL application developer available for immediate work.
    syosoft.com mavieo.com - Remote Web Site Administration Suite - Reseller Ready


  •  

    Posting Permissions

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