Results 1 to 8 of 8

Thread: PHP help

Hybrid View

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Location
    Atlanta, GA
    Age
    42
    Posts
    3,275
    Rep Power
    24

    Default

    Well it looks like you are trying to use $id as a variable. Is that variable being passed from another page? Basically what you would have to do is pass the variable to this search result basically telling $id = (Whatever id number you put in the search bar).

    Hope this helps.

  2. #2
    TOO KEWL NoWAyItZTOMmY's Avatar
    Join Date
    Jul 2006
    Location
    where ever my car drives me to
    Age
    34
    Posts
    2,451
    Rep Power
    23

    Default

    okay i have a site with the main page index.php with a blank section, then when i click link
    <a href="index.php?id=1">lala</a>

    id=1 would open the same index.php but with the info it calls for from 1, 2, 3, ect ect.

    what code would it be to use, i thought it would be
    <?php include ("$id.txt"); ?>

  3. #3
    Senior Member
    Join Date
    Aug 2005
    Location
    Atlanta, GA
    Age
    42
    Posts
    3,275
    Rep Power
    24

    Default

    Oh ok I see now.

    Try to single quote it.

    so <?php include('$id.txt') ?>

    PHP can be retarded sometimes...

    Let me know if that works for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
ImportAtlanta is a community of gearheads and car enthusiasts. It does not matter what kind of car or bike you drive, IA is an open community for any gearhead. Whether you're looking for advice on a performance build or posting your wheels for sale, you're welcome here!
Announcement
Welcome back to ImportAtlanta. We are currently undergoing many changes, so please report any issues you encounter with the site using the 'Contact Us' button below. Thank you!