Can anyone help me solve this problem, i tried everthing and googled all over everything, but still cant find solution, i hope somebody help me, ty,
*sorry for my broken english
$db=mysql_connect ("localhost", "root") or die ('I cannot connect to the database because: ' . mysql_error());
$mydb=mysql_select_db("database");
$sql="SELECT ID, FirstName, LastName FROM `contacts` WHERE FirstName LIKE '%" . $name . "%' OR LastName LIKE '%" . $name ."%'";
$result=mysql_query($sql);
$numrows=mysql_num_rows($result);
echo "<p>" .$numrows . " results found for " . stripslashes($name) . "</p>";
while($row=mysql_fetch_array($result)){
$FirstName =$row['FirstName'];
$LastName=$row['LastName'];
$ID=$row['ID'];