Craig87 Posted December 1, 2006 Share Posted December 1, 2006 I would just like to know how to go about using php to navigate throughout a site. Such as www.mysite.com/?p=tutorials would use the same page, but change the content. How would I do this. Any help is great.Thanks.Edit: I know I posted in wrong forum. Sorry. I cant delete it. Link to comment Share on other sites More sharing options...
kvnmck18 Posted December 1, 2006 Share Posted December 1, 2006 I sugguest using XML along with XSL and PHP.You can do the same using SQL or whatever. Link to comment Share on other sites More sharing options...
Craig87 Posted December 1, 2006 Author Share Posted December 1, 2006 Ill be using MySQL. Link to comment Share on other sites More sharing options...
Mr.Jay Posted December 12, 2006 Share Posted December 12, 2006 Ill be using MySQL.I don't know php so i will try and explain it in asp and hopefully you will understand enough to convert it to php.the ?t=t is known as a querystringin asp to show certain text for a certain querystring is like this<%select case request.querystring("t")' t selectedcase "t"' place code here for querystring value of t' d selectedcase "d"' place code here for querystring value of dend select%>I will look for a php version Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2006 Share Posted December 12, 2006 switch ($_GET['t']){ case 't': ... ... break; case 'd': ... ... break; default: ... ... break;} http://www.php.net/manual/en/control-structures.switch.php Link to comment Share on other sites More sharing options...
Mr.Jay Posted December 12, 2006 Share Posted December 12, 2006 switch ($_GET['t']){ case 't': ... ... break; case 'd': ... ... break; default: ... ... break;} http://www.php.net/manual/en/control-structures.switch.php there we go Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now