Solution: I asked this question with little knowledge in PHP and SQL, the solution to my answer was to wrap up the variable like this '$PLATE_NUMBER' since it is a string. This is also answered in the first comment below.
As you can see from the code, when I click search, I receive "There was no search results!" There is something wrong with my query, because if I change this to
"SELECT * FROM `tires` WHERE PLATE_NUMBER LIKE '%$PLATE_NUMBER%'"
then I receive the data inside the mySQL database?
Btw: I have also tested both query in mySQL, and it works. So what can be the problem here? I wish to search for instance "CV33610", and receive the row from my database..
$query = mysql_query("SELECT * FROM `tires` WHERE PLATE_NUMBER='%$PLATE_NUMBER%'", $connection) or die("Could not search!");
$count = mysql_num_rows($query); // Returns an integer of how many rows in your table that is picked up.
if($count == 0){
$output = 'There was no search results!';
} else {
// Collect the data into an array
while($row = mysql_fetch_array($query)){
$platenumber = $row['PLATE_NUMBER'];
$id = $row['id'];
// View the parameters to the screen.
$output .= '<div>'.$id.' '.$platenumber.'</div>';
} // End while statement
} // End if statement