Help - Search - Members - Calendar
Full Version: Parse error: parse error, unexpected T_SWITCH
Hostony Board > General Support > PHP/MySQL
RAGEnCHAOS
Parse error: parse error, unexpected T_SWITCH in /home/ragencha/public_html/index.php on line 75


here is the code
CODE
"<td align=\"center\">\n".
      switch ($_GET['mod'])
 {
      case "news": $inc = 'news/news.txt';
      break;
      case "downloads": $inc = 'display.php';
      break;
      case "links": $inc = 'show.php';
      break;
      case "addlink": $inc = 'link.php';
   break;
      case "get": $inc = 'get.php';
   break;
      default: $inc = 'news/news.txt';
      break;
  }
include ($inc);
"</td>\n".


thats from line 74 to line 91

any ideas?



i fixed my problem

CODE
echo "<td align=\"center\">";
      switch ($_GET['mod'])
 {
      case "news":
   $inc = 'news/news.txt';
      break;
      case "downloads":
   $inc = 'display.php';
      break;
      case "links":
   $inc = 'show.php';
      break;
      case "addlink":
   $inc = 'link.php';
   break;
      case "get":
   $inc = 'get.php';
   break;
      default:
   $inc = 'news/news.txt';
      break;
  }
include ($inc);
echo "</td>";


took me a while but i got it heheh
Alexandre
Do I need to do something?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here