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 3 of 3

Thread: Please Help

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

    Please Help

    I want it where when you click the trick it will go to whatever id the trick is but it doesn't work:

    PHP Code:
    echo ''.$row['title']. "<a href='/magictrick.php?id= '>Go to the trick</a>"

  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    17,027
    Thanks
    4
    Thanked 2,668 Times in 2,637 Posts
    Chances are the problem is that your query string doesn't have any id associated with it. Perhaps $row['id'] is what you are required to use?
    PHP Code:
     echo $row['title'] . '<a href="/magictrick.php?id=' $row['id'] . '">Go to the trick</a>'
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  3. Users who have thanked Fou-Lu for this post:

    NightFlyer (05-13-2008)

  4. #3
    New Coder
    Join Date
    May 2008
    Posts
    94
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Sank You! Sthat woiks!


    Yous gets positives reps!

    Sanks!


 

Posting Permissions

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