Hi everyone.
I've been having some problems with a PHP implementation here. I have to use a .txt file as a database for the Updates section of this website. I already found a way of doing it, but I still haven't figure out a way of passing the id of the news the user is clicking to the page that is loaded when you click the link More >>.
I thought this was right:
It works perfectly when I don't try to pass the id to the link. But whenever I try to include it, it stops working and gives me a blank page, what I learned that occurs when there's an error in the code. So where is the error? I can't see a reason for it to not work.PHP Code:echo "<li><strong>" . $story[1] . "</strong> - " . $story[2] . ". <a href=\"internal/news.php?id=".story[0]."\">More >></a></li>";
-----
EDIT: I forgot to say that I posted the link for the .html page so you can see something similar to what I want to achieve. To see what's happening with the .php, just click the link and then change the extension from .html to .php.



Reply With Quote




Bookmarks