Hi guys, I have a simple problem I can’t get my head around.
I have a simple index.php which includes the relevant html pages to include for a given URL, e.g.:
<?php if($_GET['p']=='main'){ include("main.htm");} else{ include("main.htm"); } ?>There’s a lot more choices and they work fine in there but I have only posted the above. Now my problem starts.
I have a simple CMS system for articles written on the site and I want a second variable to the URL, e.g.:
index.php?p=articles&id=1
So in index.php I would like something like this…
elseif($_GET[‘p’]==‘articles’){
include("./content/load_articles.php?[b]xxxxxx[/b]");}
But I’;m not sure what to put in xxxxxxxx