naiani
08-31-2007, 02:03 PM
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 (http://www.cglg-canada.com/testnew/index_imp.html). 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:
echo "<li><strong>" . $story[1] . "</strong> - " . $story[2] . ". <a href=\"internal/news.php?id=".story[0]."\">More >></a></li>";
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.
-----
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.
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 (http://www.cglg-canada.com/testnew/index_imp.html). 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:
echo "<li><strong>" . $story[1] . "</strong> - " . $story[2] . ". <a href=\"internal/news.php?id=".story[0]."\">More >></a></li>";
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.
-----
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.