This question already has an answer here:
For some reason I have received an error regarding passing a variable. The error message reads - Parse error: syntax error, unexpected '(', expecting identifier (T_STRING) or variable (T_VARIABLE)
I have tried removing the escape sequences
<?php
require_once("conn.php");
$spend = $connection->($_POST['price']);
$sql = "select * from service where quantityInStock <= $spend";
$results = $dbConn->query($sql)
or die ('Problem with query: ' . $dbConn->error);
?>
The intended output is a HTML document that enables the users to query the prices
</div>