Hi there.
I feel my question wouldn’t be well received on stackoverflow so came along here instead.
I am currently making this site for a client. however I have come to a roadblock so to speak.
little backstory to help better understand.
Company is a phone repair company, the client requires a page order similar to this :
device -> model -> models repair options
so here is where i am stuck.
I have got to the model page, but I don’t know what direction to go from here.
I could create a million pages for each model but thats pointless in my eyes when I am doing it all in php.
or create a switch statement that will obviously iterate through the statement and load up the page based on that particular model.
Here is what I have but i have no idea if I am doing this correctly.
[php]
if(isset($_GET[‘model’])) {
$model = $_GET[‘model’];
} else {
$model = ‘’;
}
switch ($model) {
case ‘5’:
include “iphoneModel.php”;
break;
case '5s':
include "iphoneModel.php";
break;
.....
case 's5':
include "samsungModel.php";
break;
case 's6':
include "samsungModel.php";
break;
.....
default:
include "model.php";
break;
}
[/php]
this is the url on the other page also
model.php?model=$model'
im probably going about this all wrong, but a kick in the right direction will be much appreciated.
If any further explanations are needed hit me up and ill do my best to explain
Thanks
Demigdz