Jump to content

can anyone help the new guy?


wildti

Recommended Posts

any idea why this doesnt work?

 

<?php

switch($pageid)

{

case "1": include('news.php');

break;

case "2": include('about.php');

break;

case "3": include('biography.php');

break;

default: include('start.php');

}

?>

 

it includes start.php fine but wont include the others when they are triggerd i.e. index.php?pageid=2 still includes start.php

 

thanks in advance :D

Link to comment
https://forums.phpfreaks.com/topic/190594-can-anyone-help-the-new-guy/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.