Parse error: syntax error, unexpected ';'

I get the following error: Parse error: syntax error, unexpected ‘;’ in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\recipes\index.php on line 90

But I don’t have 90 lines and I can’t find any extra ;s.

Help Please!


<?php

  
 if (get_magic_quotes_gpc())

{

	function stripslashes_deep($value)
	
  {

		$value = is_array($value) ?

		   array_map('stripslashes_deep', $value) :

				stripslashes($value);


		return $value;

  }


	$_POST = array_map('stripslashes_deep', $_POST);

	$_GET = array_map('stripslashes_deep', $_GET);

	$_COOKIE = array_map('stripslashes_deep', $_COOKIE);

	$_REQUEST = array_map('stripslashes_deep', $_REQUEST);

}



$link = mysqli_connect('localhost', 'root', 'Ev68025');


  if (!$link)

{

	$error = 'Unable to connect to the database server.';

echo $error;

	include 'error.html.php';

	exit();

}
  

if (!mysqli_set_charset($link, 'utf8'))

{

	$output = 'Unable to set database connection encoding.';

echo $output;
	include 'output.html.php';

	exit();

}

  
if (!mysqli_select_db($link, 'dreveritt'))

{

	$error = 'Unable to locate the database, dreveritt.';

echo $error;
	include 'error.html.php';

	exit();

}


if ($link)
{
echo 'connection established with database.';
}

mysqli_connect_db(#link, 'dreveritt');


$result = mysqli_query($link, 'SELECT recipeid, recipename FROM recipes');

if ($result)
{
  echo '<br /> got it!';
}



 if (!$result)

{

	$error = 'Error fetching data: ' . mysqli_error($link);

echo $error;
	include 'error.html.php';

	exit();

}

  

while ($row = mysqli_fetch_array($result))

{

	$recipes[] = array('id' => $row['recipeid'], 'name' => $row['recipename']);

}


include 'recipes.html.php'; 
 ?>

Unfortunately that didn’t make the error go away.

Check the include file.

yep, it was in the include. Thanks for your help.

Yes! It should be mysqli_select_db($link, ‘dreveritt’);

there were 2 problems on that line.

is that right?

It would be this line:

mysqli_connect_db(#link, 'dreveritt');

See the problem?