So i use a switch page system.
Files i have :
Core.php
So if i type index.php?subtopic=character
It displays me the include("pages/showcharacter.php"); as a normal site not in the place where i want to show it from (index.php) <?PHP echo $panel_content; ?>. The showcharacter.php has for example that code
Thanks if you can help
Files i have :
- Index.php - it has basic html tags, include('core.php'); and <?PHP echo $panel_content; ?>
- core.php - switch function + sql conn etc.
Core.php
PHP:
switch($_REQUEST['subtopic']) {
case "character":
$topic = "Character Equipment";
$subtopic = "character";
include("pages/showcharacter.php");
break;
}
So if i type index.php?subtopic=character
It displays me the include("pages/showcharacter.php"); as a normal site not in the place where i want to show it from (index.php) <?PHP echo $panel_content; ?>. The showcharacter.php has for example that code
PHP:
$panel_content = '<td style="text-align: center; width: 32px; height: 32px;">cap '.$result['cap'].'</td>';
Thanks if you can help