• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

How do I do this in php3/4 ?

it's pretty simple:

if ($id==1)
{
include "files/1.inc";
}
else if ($id=="dammit")
{
include "files/dammit.inc";
}

- Tobias
 
No that way is the hard way. just do this:

if (isset($id)) {
include "files/$id.inc";
break;
} else {
echo "error or the main page";
}

Originally posted by Tobias
it's pretty simple:

if ($id==1)
{
include "files/1.inc";
}
else if ($id=="dammit")
{
include "files/dammit.inc";
}

- Tobias
 
Thanks man.


Originally posted by Gonzo
No that way is the hard way. just do this:

if (isset($id)) {
include "files/$id.inc";
break;
} else {
echo "error or the main page";
}

Originally posted by Tobias
it's pretty simple:

if ($id==1)
{
include "files/1.inc";
}
else if ($id=="dammit")
{
include "files/dammit.inc";
}

- Tobias
 
Back
Top