Ive seen many sites where they have like for example:
index.php?page=main
On my website i have a few different .php files for the exact same thing only slightly different news display from an script. I want to do a simular thing.
Currentally in my main index i have
<DIV id=Layer5
style="Z-INDEX: 4; LEFT: 185px; WIDTH: 450px; POSITION: absolute; TOP: 95px; HEIGHT: 300px">
<font color=#8da3ba face=verdana size=1>
<TABLE width="100%" border=0 borderColor="#8da2ba" height="23">
<TBODY>
<TR>
</TR>
</TBODY></TABLE>
<?PHP
$number = "5";
$category = "1";
include("news/show_news.php");
?>
<BR><BR>
<p></p>
<? require "data.tpl" ?>
<BR><BR>
</FONT></DIV>
And for my other pages simular to the index's main layer all i change is the varible $category = "1"; to 2, 3, 4, etc...
How can i have it so that when i goto:
index.php?page=main has the category as 1
index.php?page=info has category as 2 etc...?