Page 1 of 1
windows 2000 move to linux
Posted: Mon Feb 17, 2003 4:12 am
by sphen
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
Posted: Mon Feb 17, 2003 4:13 am
by twigletmac
What does the code look like?
Mac
the code
Posted: Mon Feb 17, 2003 4:31 am
by sphen
Here is the first part of the code:
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);
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
Posted: Mon Feb 17, 2003 4:33 am
by twigletmac
Where does $page_type come from?
Mac
Posted: Mon Feb 17, 2003 4:39 am
by sphen
page_type is a part of a case statment if it selected the info within it will be shown.
THe statement comes from the link, I have manually told all the links to equal some sort of page_type so that the info within that certain switch will be shown
Posted: Mon Feb 17, 2003 4:41 am
by twigletmac
Have you read:
viewtopic.php?t=511
You probably need to use $_GET['page_type'] instead of $page_type.
Mac
thanks
Posted: Mon Feb 17, 2003 4:43 am
by sphen
gr8 thanks I'll have a look