Hi, This is hard to explain but I'll give it a shot. Basically I want to be able to display certain content within my homepage once clicked on a link on the homepage. For example: www.sitename.com/index.php is the main site page and then when the news link is clicked, the content on the page changes and shows up news but the page is still the homepage... I look at the url and it adds an id or something at the end e.g www.sitename.com/index.php?c=news_world_oa Anyone have any idea on how to do this? Thanks in advance
yeah you can <a name="sample"></a> <!--The anchor name--> <a href="#sample">this page</a> <!--onclick Linking to the named section-->
if u click on any link and ID will be sent through URL, the respective ID will b there on SQL table from there it is grabbed and printed by PHP.
Just to verify... It would do what this site does? http://www.armaholic.com/index.php Click on one of the links e.g OP.Arrowhead, Arma 2, Arma etc. Not the main links at the top of page
Is there a name for kind of action? So I can type it in google and find out more about it and how to do it using php and sql. Thanks
$subjects= mysql_query("SELECT * FROM pages WHERE subject_id={$subject_id} ORDER BY position ASC"); This is a code in PHP, same thing is happening there too. Its not simple HTML, u want SQL table and PHP handler. If u want to test in ur PC install WAMP package.