Zapdude Posted September 21, 2013 Share Posted September 21, 2013 Ok i got stuck here.. I got this:<?php$i=0;echo "<a href=\"material.php?i=\"".$i."\"> more</a>";?>$i is never evaluated so i get http://127.0.0.1/material.php?i= when i click the link instead of http://127.0.0.1/material.php?i=0What am i not seeing? Quote Link to comment Share on other sites More sharing options...
localhost Posted September 22, 2013 Share Posted September 22, 2013 You shouldn't use 0 as an ID. It's not a good practice.<?php$i='0';echo "<a href=\"material.php?i=\"".$i."\"> more</a>";?>This should work. Quote Link to comment Share on other sites More sharing options...
rach Posted September 22, 2013 Share Posted September 22, 2013 (edited) <?php$i=0;echo "<a href=\"material.php?i=".$i."\"> more</a>";?>echo "<a href=\"material.php?i=\"".$i."\"> more</a>";\" removed Edited September 22, 2013 by rach Quote Link to comment Share on other sites More sharing options...
localhost Posted September 22, 2013 Share Posted September 22, 2013 Ach, rach is also right. No need to use double quotation marks. Quote Link to comment Share on other sites More sharing options...
Zapdude Posted September 22, 2013 Author Share Posted September 22, 2013 Thanks guyz i couldn't see it ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.