I'm starting on the website and let's say it's like Indie-Resource Resource website, You got a bunch of "items" that you can search and check etc.
The question is, In my "items" page, I have several if($_GET) that will present a different content.
And the whole file is like 400 lines, so is it better to separate in multiple files like this:
Code: Select all
if(isset($_GET["id"]))
include "showproductbyid.php";
else if(isset($_GET["mypproducts"]))
include "showmyproducts.php";
else if(....)
....