Hi all;
I have developed a website in php & mySQL on a Windows 2000 Server, I have now moved over to Redhat Linux Apache Server and now the site does not see any of my case statements.
It does see the include files but does not show anything within a case statement.
Thanks
windows 2000 move to linux
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
the code
Here is the first part of the code:
The problem seems to be the same throughout as none of the other pages work and it all operates on the same type of system e.g. Using a whole bunch of case statements.
It is somehow not processing the case statements
Code: Select all
<?php
//includes
include("../java/conf.php");
//create the layout for the chosen link
switch ($page_type)
{
//*******************************************************************************
case 'intro'; //layout for the intro page
echo "<table border='0' cellspacing='0' cellpadding='0' width='95%'>
<tr><td bgcolor='#005198' valign='top' align='left' width='28%'><font color='#FFFFFF'>
<b>INTRO</b></font> </td>
<td bgcolor='#005198' valign='top' align='right' width='14%'><img src='../images/aboutmecer.gif' width='46' height='16' align='top'></td>
<td width='58%'><img src='/images/spacer.gif' width='1' height='16'></td>
</tr> <tr> <td colspan='2'><img src='../images/spacer.gif' width='1' height='1'></td>
<td bgcolor='#B9C5DF' width='58%'><img src='../images/spacer.gif' width='100%' height='1'></td>
</tr> <tr> <td colspan='3'> </td> </tr> <tr> <td colspan='3'> " ;
$result = mysql_query("SELECT information from mecercontent WHERE subsection='intro'AND section = 'intro'" ,$db);
$myrow = mysql_fetch_array($result);
$reqInfo = $myrowї"information"];
echo nl2br($reqInfo);It is somehow not processing the case statements
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Have you read:
viewtopic.php?t=511
You probably need to use $_GET['page_type'] instead of $page_type.
Mac
viewtopic.php?t=511
You probably need to use $_GET['page_type'] instead of $page_type.
Mac