Jump to content

Parse error


3raser

Recommended Posts

I looked into this code for a while, and usually it's my brackets that give me this error. I even checked the brackets, they all match up.

 

Parse error: parse error in C:\wamp\www\project11\clan_pages.php on line 20

 

<?php
session_start();
$session = $_SESSION['user'];

$mysql_host = "localhost";
$mysql_username = "root";
$mysql_password = "";
$mysql_database = "project11";

mysql_connect($mysql_host, $mysql_username, $mysql_password);
mysql_select_db($mysql_database);

$clan = $_GET['id'];

         if(!$clan) {
      echo "You haven't chosen a page to view! <a href='index.php'>Home</a>";
     } else {
	  if ($get_other = mysql_query("SELECT FROM clans WHERE clan_id='$clan'")) {
	  $check = mysql_num_rows($_get_other)
	  if($check) {
	  //clan data 
	  } else {
	   echo "Sorry, no clan exists with the ID of ". $clan .". <a href='index.php'>Home</a>";
	  }
	 }
        }
?>

Link to comment
https://forums.phpfreaks.com/topic/204981-parse-error/
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.