Please I will give 10 points ! I always do.
This is the error
PHP Parse error: syntax error, unexpected T_VARIABLE in /var/www/html/search.php on line 11
This is my whole code
<?php
include ("dbinfo.inc.php");
mysql_connect('localhost',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$searchterm = $_POST['searchterm']
$query= "select * from contacts where first like
'%$searchterm%'
";
$result = mysql_query($query);
echo "$result";
?>
Line 11 is :
$query= "select * from contacts where first like
This is the error
PHP Parse error: syntax error, unexpected T_VARIABLE in /var/www/html/search.php on line 11
This is my whole code
<?php
include ("dbinfo.inc.php");
mysql_connect('localhost',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$searchterm = $_POST['searchterm']
$query= "select * from contacts where first like
'%$searchterm%'
";
$result = mysql_query($query);
echo "$result";
?>
Line 11 is :
$query= "select * from contacts where first like