
- PHP help
-
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.
-
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"); ?>
-
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.

- PHP help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules